本文整理汇总了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();
}
}
示例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;
}
示例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();
}
}
}
示例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;
}
示例5: Form2_FormClosed
private void Form2_FormClosed(object sender, FormClosedEventArgs e)
{
if (f.gamego == false)
{
Application.Exit();
}
}
示例6: frmMapSelection_FormClosed
private void frmMapSelection_FormClosed(object sender, FormClosedEventArgs e)
{
if (frmStart != null)
{
frmStart.Close();
}
}
示例7: fmCard_FormClosed
private void fmCard_FormClosed(object sender, FormClosedEventArgs e)
{
CommiManager.GlobalManager.ClearCommand();
ThreadManager.AbortAll();
CommiManager.GlobalManager.ResetClient();
Application.Exit();
}
示例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();
}
示例9: MainForm_FormClosed
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
if ((Session.SERVER.Count != 0) && (Session.USER.Count != 0))
{
Application.Exit();
}
}
示例10: Form1_FormClosed
private void Form1_FormClosed( object sender, FormClosedEventArgs e)
{
if (capWebCam != null)
{
capWebCam.Dispose();
}
}
示例11: HogForm_FormClosed
private void HogForm_FormClosed(object sender, FormClosedEventArgs e)
{
if (unsubscribeCheckBox.Checked)
{
_mainForm.PigOut -= OnPigOut;
}
}
示例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));
}
示例13: frmMain3_FormClosed
private void frmMain3_FormClosed(object sender, FormClosedEventArgs e)
{
if (frmStart != null)
{
frmStart.Visible = true;
}
}
示例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);
}