当前位置: 首页>>代码示例>>C#>>正文


C# MainForm.Show方法代码示例

本文整理汇总了C#中MainForm.Show方法的典型用法代码示例。如果您正苦于以下问题:C# MainForm.Show方法的具体用法?C# MainForm.Show怎么用?C# MainForm.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MainForm的用法示例。


在下文中一共展示了MainForm.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RestoreForm

        public override void RestoreForm(MainForm form)
        {
            if (form.Opacity == 0.0)
                form.Opacity = 1.0;

            form.Show();
        }
开发者ID:eried,项目名称:OnTopReplica,代码行数:7,代码来源:WindowsSeven.cs

示例2: OnExecuted

        protected override void OnExecuted(EventArgs e)
        {
            base.OnExecuted(e);

            MainForm form = new MainForm();
            form.Show();
        }
开发者ID:piedar,项目名称:MachoMap,代码行数:7,代码来源:NewWindowCommand.cs

示例3: OnClickRecords

 public void OnClickRecords(MainForm form)
 {
     //Set it up to return to main menu after closing
     var nextForm = new RecordsForm(new RecordsController());
     nextForm.FormClosed += delegate { form.Show(); };
     nextForm.Show();
     form.Hide();
 }
开发者ID:ahhhhnoooo,项目名称:TicTacToeWinForms,代码行数:8,代码来源:MainController.cs

示例4: Activate

 public void Activate()
 {
     if (frm == null)
     {
         frm = new MainForm();
         frm.FormClosed += new FormClosedEventHandler(FormClosed);
         frm.Show();
     }
 }
开发者ID:slawer,项目名称:service,代码行数:9,代码来源:Switcher.cs

示例5: icon_Click

 private static void icon_Click(object Sender, EventArgs e)
 {
     if (!mainFormActive)
     {
         MainForm form = new MainForm();
         form.Show();
         mainFormActive = true;
     }
 }
开发者ID:hayfield,项目名称:Bandwidth-Monitor,代码行数:9,代码来源:Program.cs

示例6: IrcCloneSharkExtension

        public IrcCloneSharkExtension(IrcSharkApplication sharkApp, ExtensionInfo myInfo)
            : base("IrcShark GUI (mIRC-Clone)", myInfo)
        {
            IrcSharkApp = sharkApp;

            IrcSharkApp.ShowGUI = false;
            Console.Out.WriteLine("IrcCloneShark loaded!");
            MainFormValue = new MainForm(this);
            MainFormValue.Show();
        }
开发者ID:hapm,项目名称:IrcShark,代码行数:10,代码来源:IrcCloneSharkExtension.cs

示例7: Activate

        public void Activate()
        {
            if (!isWorking)
            {
                frm = new MainForm(app);
                frm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(frm_FormClosing);
                frm.Show();

                isWorking = true;
                Interlocked.Exchange(ref needed, 1);
            }
        }
开发者ID:slawer,项目名称:service,代码行数:12,代码来源:DeviceUnknown.cs

示例8: LaunchEditor

        public void LaunchEditor(FileSystem fs, File file)
        {
            if (fs is RealFileSystem)
            {
                var form = new MainForm();
                form.Show();

                DirectoryInfo parent = new DirectoryInfo((fs as RealFileSystem).RealDirectory).Parent;
                string archiveFilename = parent == null ? file.FullName : Path.Combine(parent.FullName, file.FullName);
                form.OpenFile(archiveFilename, null);
            }

        }
开发者ID:tjhorner,项目名称:gtaivtools,代码行数:13,代码来源:SparkIVEditor.cs

示例9: timer1_Tick

 private async void timer1_Tick(object sender, EventArgs e)
 {
     if (aboProgressBar1.Progress == 100)
     {
         timer1.Stop();
         await Task.Delay(500);
         main = new MainForm();
         main.Show();
         this.Visible = false;
         this.Hide();
     }
     aboProgressBar1.Progress++;
 }
开发者ID:jpdante,项目名称:TextureMap-Pro,代码行数:13,代码来源:Loading.cs

示例10: btnLogin_Click

 private void btnLogin_Click(object sender, EventArgs e)
 {
     NorthwindService.Service1Client northwind = new NorthwindService.Service1Client();
     CusID = northwind.GetCustomer(txtCusID.Text,txtCusPassword.Text);
     if (CusID != null)
     {
         //frmMainOrder order = new frmMainOrder(CusID);
         //order.MdiParent = this.
         //order.Show();
         MainForm main = new MainForm();
         main.Show();
         this.Hide();
     }
     else
         lblStatus.Text = "Invalid ID or Password ";
 }
开发者ID:tuanva90,项目名称:mvccodefirst,代码行数:16,代码来源:LoginFrm.cs

示例11: Main

        public static void Main()
        {
            // Start load of main form.
            MainForm main = new MainForm();

            try {
                DeskScop.Instance().UiConfiguration = main;
            } catch (ConfigurationException) {
                // User will have already been warned, exit safely.
                return;
            }

            // Show main form.
            main.Show();

            // Pass form onto main thread.
            Application.Run( main );
        }
开发者ID:afit,项目名称:DeskScop,代码行数:18,代码来源:Bootstrap.cs

示例12: Main

	public static void Main (string[] args)
	{
		if (Array.IndexOf (args, "--help") > -1)
			PrintUsageAndExit ();

		if (Array.IndexOf (args, "--version") > -1) {
			VersionFu.PrintVersion ();
			// Console.WriteLine (Qt.QT_VERSION_STR); // Uncomment when does not crash
			Environment.Exit (0);
		}

		// FIXME: Cant seem to pass the args to Qt!
		new QApplication(args);

		MainForm mf = new MainForm(args);
		mf.Show ();

		QApplication.Exec();
	}
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:19,代码来源:SettingsQt.cs

示例13: Main

    public static void Main()
    {
        // ref: http://qiita.com/hart_edsf/items/0301f17e2d9acd890c5e
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);

        using (MainForm form = new MainForm()) {

            form.Show();

            // Note: there may be some issues with this.
            // see http://blogs.msdn.com/b/rickhos/archive/2005/03/30/403952.aspx
            while (form.Created) {
                form.Loop();
                Application.DoEvents();
            }

        }
    }
开发者ID:oxyflour,项目名称:old-repos,代码行数:19,代码来源:main.cs

示例14: Bug347669

		[Test]  // Should not throw AOORE
		public void Bug347669 ()
		{
			Form main = new MainForm ();
			main.Show ();
			Form frm = new Childform ();
			frm.MdiParent = main;
			frm.Show ();
			main.Dispose ();
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:10,代码来源:ToolStripManagerTest.cs

示例15: ShowMainForm

 /// <summary>
 /// Показывает главную форму.
 /// </summary>
 private void ShowMainForm()
 {
     Program.sourceImage = previewPictureBox.Image;
     if (!originalSizeCheckBox.Checked)
         if (Program.sourceImage.Width > MAX_SIZE || Program.sourceImage.Height > MAX_SIZE)
             if (Program.sourceImage.Width > Program.sourceImage.Height)
                 Program.sourceImage = Program.sourceImage.Scale(MAX_SIZE, MAX_SIZE * Program.sourceImage.Height/ Program.sourceImage.Width);
             else
                 Program.sourceImage = Program.sourceImage.Scale(MAX_SIZE * Program.sourceImage.Width/ Program.sourceImage.Height, MAX_SIZE);
     MainForm maneForm = new MainForm();
     maneForm.Show(this);
     this.Hide();
 }
开发者ID:Kovnir,项目名称:DeblurModification,代码行数:16,代码来源:StartForm.cs


注:本文中的MainForm.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。