private void cmdAdd_Click(object sender, EventArgs e) { DKNForm.frmDebetKreditNotaCabangUpdate ifrmChild = new DKNForm.frmDebetKreditNotaCabangUpdate(this); //ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.ShowDialog(); }
private void cmdEdit_Click(object sender, EventArgs e) { string rowID = gridCabang.SelectedCells[0].OwningRow.Cells["ID"].Value.ToString(); DKNForm.frmDebetKreditNotaCabangUpdate ifrmChild = new DKNForm.frmDebetKreditNotaCabangUpdate(this, rowID); //ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.ShowDialog(); }