Example #1
0
        private void cmdADD_Click(object sender, EventArgs e)
        {
            frmMekanikUpdate ifrmChild = new frmMekanikUpdate(this);

            //ifrmChild.MdiParent = Program.MainForm;
            //Program.MainForm.RegisterChild(ifrmChild);
            ifrmChild.ShowDialog();
        }
Example #2
0
        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();
        }