void timer1_Tick(object sender, EventArgs e)
 {
     i                  += 2;
     label2.Text         = i.ToString() + " % Loaded";
     progressBar1.Value += 2;
     if (progressBar1.Value == progressBar1.Maximum)
     {
         timer1.Enabled = false;
         frmadminlogin obj = new frmadminlogin();
         obj.Show();
         this.Hide();
     }
 }
Пример #2
0
 private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do You Want To LogOut", "LogOut", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         frmadminlogin obj = new frmadminlogin();
         obj.LastLoginDetails(frmadminlogin.AdminId, "LogOut");
         obj.Show();
         this.Dispose();
     }
     else
     {
     }
 }
Пример #3
0
 private void frmMDIParent_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show("Do You Want to Exit?", "Exit", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         frmadminlogin obj = new frmadminlogin();
         obj.LastLoginDetails(frmadminlogin.AdminId, "LogOut");
         obj.Show();
         this.Dispose();
     }
     else
     {
         e.Cancel = true;
     }
 }
Пример #4
0
        private void frmMDIParent_Load(object sender, EventArgs e)
        {
            frmadminlogin obj = new frmadminlogin();

            obj.Dispose();
        }