示例#1
0
 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();
 }
示例#2
0
        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();
        }