Example #1
0
 private void OCMS_Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     try {
         this.Hide();
         LoginPage_cs login = new OCMS_Project.LoginPage_cs();
         login.Show();
     } catch (DivideByZeroException)
     {
         MessageBox.Show("Error : Divide By Zero Exception", "Error");
     }
 }
Example #2
0
 private void Logout_Box_Click(object sender, EventArgs e)
 {
     try {
         this.Hide();
         LoginPage_cs main = new OCMS_Project.LoginPage_cs();
         main.Show();
     }
     catch (DivideByZeroException)
     {
         MessageBox.Show("Error : Divide By Zero Exception", "Error");
     }
 }