예제 #1
0
 private void cmdAdd_Click(object sender, EventArgs e)
 {
     Master.frmMasterStokBengkelUpdate ifrmChild = new Master.frmMasterStokBengkelUpdate(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)
     {
         Guid rowID = (Guid)dataGridView1.SelectedCells[0].OwningRow.Cells["RowIDbkl"].Value;
         Master.frmMasterStokBengkelUpdate ifrmChild = new Master.frmMasterStokBengkelUpdate(this, rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show("Data tidak ada");
         return;
     }
 }