コード例 #1
0
ファイル: fMainWindow.cs プロジェクト: fjknc/giaThuZ119
        private void tsmenuItemSystemEdit_Click(object sender, EventArgs e)
        {
            (sender as ToolStripMenuItem).Enabled = false;
            fSystemEditForm fsystemEdit = new fSystemEditForm();

            fsystemEdit.MdiParent    = this;
            fsystemEdit.Done        += FsystemEdit_Done;
            fsystemEdit.FormClosing += FsystemEdit_FormClosing;
            fsystemEdit.Show();
            fsystemEdit.Location = new Point(555, 20);
        }
コード例 #2
0
ファイル: fMainWindow.cs プロジェクト: kimphg/giaThuZ119
        private void tsmenuItemSystemEdit_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["fSystemEditForm"];

            if (fc == null)
            {
                fSystemEditForm fsystemEdit = new fSystemEditForm();
                fsystemEdit.MdiParent    = this;
                fsystemEdit.Done        += FsystemEdit_Done;
                fsystemEdit.FormClosing += FsystemEdit_FormClosing;
                fsystemEdit.Show();
                fsystemEdit.Location = new Point(555, 20);
            }
            else
            {
                fc.BringToFront();
            }
        }