コード例 #1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            var vehicleListing = new ManageVehicleListing();

            vehicleListing.MdiParent = this.MdiParent;
            vehicleListing.Show();
            this.Close();
        }
コード例 #2
0
        private void manageVehicleListingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ManageVehicleListing mvl = new ManageVehicleListing();

            mvl.MdiParent   = this;
            mvl.WindowState = FormWindowState.Maximized;
            mvl.Show();
        }
コード例 #3
0
 private void manageVehicleListingToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!Utils.FormIsOpen("ManageVehicleListing"))
     {
         var vehicleListing = new ManageVehicleListing();
         vehicleListing.MdiParent = this;
         vehicleListing.Show();
     }
 }
コード例 #4
0
ファイル: MainWindow.cs プロジェクト: FalzoNe007/CSWF
        private void manageVehicleListingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var OpenForms = Application.OpenForms.Cast <Form>();
            var isOpen    = OpenForms.Any(q => q.Name == "ManageVehicleListing");

            if (!isOpen)
            {
                var vehicleListing = new ManageVehicleListing();
                vehicleListing.MdiParent = this;
                vehicleListing.Show();
            }
        }