private void cmdADD_Click(object sender, EventArgs e) { frmMotorUpdate ifrmChild = new frmMotorUpdate(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; frmMotorUpdate ifrmChild = new frmMotorUpdate(this, rowID); //ifrmChild.MdiParent = Program.MainForm; //Program.MainForm.RegisterChild(ifrmChild); ifrmChild.ShowDialog(); }