• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.FormClosedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OnFormClosed

        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            if (IsAutoSerialize)
                this.Serialize();

            base.OnFormClosed(e);
        }
开发者ID:data-avail,项目名称:DataAvail.WinForms,代码行数:7,代码来源:XtraForm.cs


示例17: ContextLogForm_FormClosed

 private void ContextLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (ctx != null) {
         ctx.onSentence -= onContextSentence;
         forms.Remove(ctx.id);
     }
 }
开发者ID:wareya,项目名称:chiitrans,代码行数:7,代码来源:ContextLogForm.cs


示例18: FormNetworkControl_FormClosed

 private void FormNetworkControl_FormClosed(object sender, FormClosedEventArgs e)
 {
     lock (SyncRoot)
     {
         _Instance = null;
     }
 }
开发者ID:serialbus,项目名称:NGK,代码行数:7,代码来源:FormNetworkControl.cs


示例19: LoginForm_FormClosed

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


示例20: GestionProveedores_FormClosed

 private void GestionProveedores_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (Application.OpenForms["GestionProveedoresBuscar"] != null)
     {
         Application.OpenForms["GestionProveedoresBuscar"].Activate();
     }
 }
开发者ID:angelguit,项目名称:dpaa-alquilercoches,代码行数:7,代码来源:GestionProveedores.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.FormClosingEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.Form类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap