Beispiel #1
0
 public static frmEmployeeDetail GetInstance()
 {
     if (form == null)
     {
         form = new frmEmployeeDetail();
     }
     return(form);
 }
Beispiel #2
0
 private void frmEmployeeDetail_FormClosed(object sender, FormClosedEventArgs e)
 {
     Check_Save();
     if (!SaveMode)
     {
         if (MessageBox.Show("Employee Information was edited. Do you want to save it?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             btnUpdate_Click(sender, e);
         }
     }
     SaveMode = true;
     form     = null;
 }