Beispiel #1
0
        private void DeviceMgmr_Edit_FormClosing(object sender, FormClosingEventArgs e)
        {
            DeviceMgmr_CS devmain = new OCMS_Project.DeviceMgmr_CS();

            devmain.Uname = uname;
            devmain.Lname = lname;
            devmain.Usr   = usr;
            devmain.priv  = upv;
            devmain.Show();
        }
Beispiel #2
0
 private void DeviceMgmr_Box_Click(object sender, EventArgs e)
 {
     try
     {
         DeviceMgmr_CS devmgr = new OCMS_Project.DeviceMgmr_CS();
         devmgr.Uname = uname;
         devmgr.Lname = lname;
         devmgr.Usr   = usr;
         devmgr.priv  = upv;
         this.Hide();
         devmgr.Show();
     }
     catch (DivideByZeroException)
     {
         MessageBox.Show("Error : Divide By Zero Exception", "Error");
     }
 }