示例#1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmLookupUpdate ifrmChild = new Master.frmLookupUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
示例#2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         string _lookupCode = dataGridView1.SelectedCells[0].OwningRow.Cells["LookupCode"].Value.ToString();
         string _lookupType = dataGridView1.SelectedCells[0].OwningRow.Cells["LookupType"].Value.ToString();
         Master.frmLookupUpdate ifrmChild = new Master.frmLookupUpdate(this, _lookupCode, _lookupType);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }