Esempio n. 1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmVendorUpdate ifrmChild = new Master.frmVendorUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Esempio n. 2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         Guid rowID = (Guid)dataGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value;
         Master.frmVendorUpdate ifrmChild = new Master.frmVendorUpdate(this, rowID);
         Program.MainForm.CheckMdiChildren(ifrmChild);
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }
Esempio n. 3
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         Guid rowID = (Guid)Tools.isNull(dataGridView1.SelectedCells[0].OwningRow.Cells["CabangID"].Value, Guid.Empty);
         Master.frmVendorUpdate ifrmChild = new Master.frmVendorUpdate(this, rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }
Esempio n. 4
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmVendorUpdate ifrmChild = new Master.frmVendorUpdate(this);
     Program.MainForm.CheckMdiChildren(ifrmChild);
 }