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


C# Forms.FormClosedEventArgs类代码示例

本文整理汇总了C#中System.Windows.Forms.FormClosedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# FormClosedEventArgs类的具体用法?C# FormClosedEventArgs怎么用?C# FormClosedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: VideoForm_FormClosed

 private void VideoForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (videoPlayer.IsRunning)
     {
         StopVideo();
     }
 }
开发者ID:ritasker,项目名称:WebCamSpike,代码行数:7,代码来源:Form2.cs

示例2: Form1_FormClosed

        //When the application is terminating, close the Phidget.
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            lcd.rows[0].DisplayString = "";
            lcd.rows[1].DisplayString = "";

            lcd.Attach -= new AttachEventHandler(lcd_Attach);
            lcd.Detach -= new DetachEventHandler(lcd_Detach);
            lcd.Error -= new ErrorEventHandler(lcd_Error);

            ifk.Attach -= new AttachEventHandler(ifk_Attach);
            ifk.Detach -= new DetachEventHandler(ifk_Detach);
            ifk.Error -= new ErrorEventHandler(ifk_Error);

            ifk.InputChange -= new InputChangeEventHandler(ifk_InputChange);
            ifk.OutputChange -= new OutputChangeEventHandler(ifk_OutputChange);
            ifk.SensorChange -= new SensorChangeEventHandler(ifk_SensorChange);

            //run any events in the message queue - otherwise close will hang if there are any outstanding events
            Application.DoEvents();

            lcd.close();
            ifk.close();

            lcd = null;
            ifk = null;
        }
开发者ID:souryavaranasi,项目名称:launch-tower,代码行数:27,代码来源:Form1.cs

示例3: OnFormClosed

        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            if (SuperPuTTY.MainForm == null) return;

            // only 1 panel
            if (SuperPuTTY.MainForm.CurrentPanel == this && this.NextPanel == this && this.PreviousPanel == this)
            {
                SuperPuTTY.MainForm.CurrentPanel = null;
                return;
            }

            // Remove ourselves from our position in chain and set last active tab as current
            if (this.PreviousPanel != null)
            {
                this.PreviousPanel.NextPanel = this.NextPanel;
            }
            if (this.NextPanel != null)
            {
                this.NextPanel.PreviousPanel = this.PreviousPanel;
            }
            SuperPuTTY.MainForm.CurrentPanel = this.PreviousPanel;

            // manipulate tabs
            if (this.DockHandler.Pane != null)
            {
                int idx = this.DockHandler.Pane.Contents.IndexOf(this);
                if (idx > 0)
                {
                    IDockContent contentToActivate = this.DockHandler.Pane.Contents[idx - 1];
                    contentToActivate.DockHandler.Activate();
                }
            }
        }
开发者ID:kleopatra999,项目名称:SuperPutty-1,代码行数:35,代码来源:ToolWindowEx.cs

示例4: FormSync_FormClosed

		private void FormSync_FormClosed(object sender, FormClosedEventArgs e)
		{
			if (DialogResult != DialogResult.OK) return;
			Library.SyncSettings.MinimizeOnSync = ckMinimizeOnSync.Checked;
			Library.SyncSettings.CloseAfterSync = ckCloseAfterSync.Checked;
			Library.SyncSettings.ShowProgress = ckShowSyncStatus.Checked;
		}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:7,代码来源:FormSync.cs

示例5: Form2_FormClosed

 private void Form2_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (f.gamego == false)
     {
         Application.Exit();
     }
 }
开发者ID:adenvik,项目名称:BlackJack,代码行数:7,代码来源:Form2.cs

示例6: frmMapSelection_FormClosed

 private void frmMapSelection_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (frmStart != null)
     {
         frmStart.Close();
     }
 }
开发者ID:BNU-Chen,项目名称:CityPlanningView,代码行数:7,代码来源:frmMapSelection.cs

示例7: fmCard_FormClosed

 private void fmCard_FormClosed(object sender, FormClosedEventArgs e)
 {
     CommiManager.GlobalManager.ClearCommand();
     ThreadManager.AbortAll();
     CommiManager.GlobalManager.ResetClient();
     Application.Exit();
 }
开发者ID:thisisvoa,项目名称:GranityApp2.5,代码行数:7,代码来源:fmCard.cs

示例8: loginform_FormClosed

         private void loginform_FormClosed(object sender, FormClosedEventArgs e)
        {
            // this part will contain anything require before we close the application

            // close the application
            Application.Exit();
        }
开发者ID:bmahaj2,项目名称:Projects,代码行数:7,代码来源:ChangePassword.cs

示例9: MainForm_FormClosed

 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if ((Session.SERVER.Count != 0) && (Session.USER.Count != 0))
     {
         Application.Exit();
     }
 }
开发者ID:herokes,项目名称:Project_BV,代码行数:7,代码来源:MainForm.cs

示例10: Form1_FormClosed

 private void Form1_FormClosed( object sender, FormClosedEventArgs e)
 {
     if (capWebCam != null)
     {
         capWebCam.Dispose();
     }
 }
开发者ID:jakha,项目名称:comEye,代码行数:7,代码来源:Form1.cs

示例11: HogForm_FormClosed

 private void HogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (unsubscribeCheckBox.Checked)
     {
         _mainForm.PigOut -= OnPigOut;
     }
 }
开发者ID:jiantaow,项目名称:AdvDotNet.Samples,代码行数:7,代码来源:HogForm.cs

示例12: frmMain_FormClosed

 private void frmMain_FormClosed(object sender, FormClosedEventArgs e)
 {
     UdpClient uc = new UdpClient();
     string msg = "LOGOUT";
     byte[] bmsg = Encoding.Default.GetBytes(msg);
     uc.Send(bmsg, bmsg.Length, new IPEndPoint(IPAddress.Parse("255.255.255.255"), 9527));
 }
开发者ID:hytcLiuhuaxu,项目名称:chat,代码行数:7,代码来源:Form1.cs

示例13: frmMain3_FormClosed

 private void frmMain3_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (frmStart != null)
     {
         frmStart.Visible = true;
     }
 }
开发者ID:BNU-Chen,项目名称:CityPlanningView,代码行数:7,代码来源:frmMain3.cs

示例14: FacebookAuthentication_FormClosed

 private void FacebookAuthentication_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (DialogResult != DialogResult.OK)
     {
         DialogResult = DialogResult.Cancel;
     }
 }
开发者ID:jeffdeville,项目名称:FacebookDeveloperToolkit---Fork-at-37335,代码行数:7,代码来源:FacebookAuthentication.cs

示例15: frm_FormClosed

 void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     string ten = (string)((Form)sender).Tag;
     DateTime from = dpkfrom.Value;
     DateTime to = dkpTo.Value;
     ShowcongnoKH(ten,from, to);
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:frmTheodoicongno.cs


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