private void commandButton1_Click(object sender, EventArgs e) { Penjualan.frmLostSalesupdate ifrmChild = new Penjualan.frmLostSalesupdate(this, "ADD"); ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.Show(); }
private void commandButton2_Click(object sender, EventArgs e) { Guid RowID = (Guid)customGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value; Penjualan.frmLostSalesupdate ifrmChild = new Penjualan.frmLostSalesupdate(this, "EDIT", RowID); ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.Show(); }