Exemplo n.º 1
0
        private void Add(object sender, EventArgs e)
        {
            if (((MainForm)this.MdiParent).ActiveMdiChild == this)
            {
                EmployeeVO           employeeVO = this.GetEmployee();
                ApplicationPopupForm frm        = new ApplicationPopupForm(employeeVO);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
        }
Exemplo n.º 2
0
        private void dataGridViewControl1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            EmployeeVO           employeeVO = this.GetEmployee();
            int                  app_id     = dataGridViewControl1["APP_ID", e.RowIndex].Value.ToInt();
            ApplicationPopupForm frm        = new ApplicationPopupForm(employeeVO, app_id);

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