private void cmdAdd_Click(object sender, EventArgs e) { Fixrute.frmMasterOutletBaruUpdate ifrmChild = new frmMasterOutletBaruUpdate(this); ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.Show(); }
private void cmdEdit_Click(object sender, EventArgs e) { Guid _row = (Guid)customGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value; Fixrute.frmMasterOutletBaruUpdate ifrmChild = new frmMasterOutletBaruUpdate(this, _row); ifrmChild.MdiParent = Program.MainForm; Program.MainForm.RegisterChild(ifrmChild); ifrmChild.Show(); }