Beispiel #1
0
 private void commandButton1_Click(object sender, EventArgs e)
 {
     Debug.frmContohEdit ifrmChild = new Debug.frmContohEdit(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Beispiel #2
0
 private void commandButton2_Click(object sender, EventArgs e)
 {
     if (customGridView1.SelectedCells.Count > 0)
     {
         string rowID = customGridView1.SelectedCells[0].OwningRow.Cells["CabangID"].Value.ToString();
         Debug.frmContohEdit ifrmChild = new Debug.frmContohEdit(this, rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }