當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。