private void cmdADD_Click(object sender, EventArgs e) { frmMekanikUpdate ifrmChild = new frmMekanikUpdate(this); //ifrmChild.MdiParent = Program.MainForm; //Program.MainForm.RegisterChild(ifrmChild); ifrmChild.ShowDialog(); }
private void cmdEDIT_Click(object sender, EventArgs e) { if (!FormTools.IsRowSelected(dgMain)) { return; } Guid rowID; rowID = (Guid)dgMain.SelectedCells[0].OwningRow.Cells["RowID"].Value; frmMekanikUpdate ifrmChild = new frmMekanikUpdate(this, rowID); //ifrmChild.MdiParent = Program.MainForm; //Program.MainForm.RegisterChild(ifrmChild); ifrmChild.ShowDialog(); }