Esempio n. 1
0
 private void Add(object sender, EventArgs e)
 {
     if (((MainForm)this.MdiParent).ActiveMdiChild == this)
     {
         ProcessWorkerPopupForm frm = new ProcessWorkerPopupForm(emp.Employee_name, false, null);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
 }
Esempio n. 2
0
        private void OpenPopup(bool IsUpdate, ProcessWorkerVO vo = null)
        {
            if (((MainForm)this.MdiParent).ActiveMdiChild == this)
            {
                ProcessWorkerPopupForm frm = new ProcessWorkerPopupForm(emp.Employee_name, IsUpdate, vo);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
        }