Beispiel #1
0
        byte i       = 0; //for closing Registrationprocess if system datetime is changes

        private void SplashWindow_Load(object sender, EventArgs e)
        {
            lblversion.Text            = lblversion.Text + " " + Application.ProductVersion;
            clsUtility.strProjectTitle = "Inventory Management System";

            if (System.IO.Directory.Exists("AppConfig") && System.IO.File.Exists("AppConfig\\ServerConfig.sc"))
            {
                ObjDAL            = new clsConnection_DAL(true);
                clsUtility.DBName = ObjDAL.GetCurrentDBName(true);
                AddStatusDate();// for adding current datetime if current datetime is greater than previous statusdate's datetime
                IsPath = true;
            }
            else
            {
                lblStatus.Text = lblStatus.Text + " UnRegistered Version";
            }
            timer1.Enabled = true;
            timer1.Start();
        }