Example #1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            FrmTeacher frmCompany = new FrmTeacher();

            frmCompany.ShowDialog();
            if (frmCompany.SaveCompleted)
            {
                LoadData();
            }
        }
Example #2
0
 private void BtnView_Click(object sender, EventArgs e)
 {
     if (getId != Guid.Empty)
     {
         FrmTeacher frmCompany = new FrmTeacher(getId, false);
         frmCompany.ShowDialog();
         if (frmCompany.SaveCompleted)
         {
             LoadData();
         }
     }
 }