Sunday, 21 April 2013

Validation given to a project for some days

if ((System.DateTime.Today.Day >= 1 && System.DateTime.Today.Month == 12)||System.DateTime.Today.Year==2012)
                {
                    MessageBox.Show("Your Software already Collaspsed Please register your product");
                }
                 else
                {
                    if (System.DateTime.Today.Day >= 10 && System.DateTime.Today.Month == 12)//10 and 12 you can take it from xml file or other
                    {
                        MessageBox.Show("You Should Renew Your Software within 15 days Otherwise it will Collaspe","DJSplashSinglePoint",MessageBoxButtons.OK,MessageBoxIcon.Information);
                    }
//this condition is given according to project requirement
                    blkPkt = null;
                    _modeType = FormModes.Add;
                    ResetControl(_modeType);
                    txtRefVrNo.Focus();
                }

No comments:

Post a Comment