Example #1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmTargetOverdueUpDate ifrmChild = new Master.frmTargetOverdueUpDate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Example #2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (customGridView1.SelectedCells.Count > 0)
     {
         Guid _RowID = (Guid)customGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value;
         Master.frmTargetOverdueUpDate ifrmChild = new Master.frmTargetOverdueUpDate(this, _RowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }