本文整理汇总了C#中System.Windows.ExitEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ExitEventArgs类的具体用法?C# ExitEventArgs怎么用?C# ExitEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExitEventArgs类属于System.Windows命名空间,在下文中一共展示了ExitEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnExit
protected override void OnExit(ExitEventArgs e)
{
EventP2PDispatcher.StopP2PEventMesh();
Session.ShutDown();
base.OnExit(e);
}
示例2: OnExit
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
// close IRC connections
if(IRCClient.IsConnected)
IRCClient.Disconnect();
}
示例3: OnExit
protected override void OnExit(ExitEventArgs e)
{
/*if(ImapController.IdleThread != null)
{
ImapController.IdleThread.Abort();
}*/
}
示例4: OnExit
protected override void OnExit(ExitEventArgs e)
{
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
GC.WaitForPendingFinalizers();
}
示例5: OnExit
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
// Disable needed privileges
Permissions.SetPrivileges(false);
}
示例6: aboutToExit
public void aboutToExit(object sender, ExitEventArgs e)
{
db.closeConnection();
windowController.close();
ThreadsMaster.getInstance().waitToFinish();
Application.Current.Shutdown();
}
示例7: OnExit
protected override void OnExit(ExitEventArgs e)
{
if (instanceLockMutex != null)
{
instanceLockMutex.Dispose();
}
}
示例8: CurrentApplication_Exit
private static void CurrentApplication_Exit(object sender, ExitEventArgs e)
{
if (OnApplicationExit != null)
{
OnApplicationExit(sender, e);
}
}
示例9: OnExit
protected override void OnExit(ExitEventArgs e)
{
this.applicationController.Shutdown();
this.container.Dispose();
base.OnExit(e);
}
示例10: App_OnExit
private void App_OnExit(object sender, ExitEventArgs e)
{
if (_mMutex == null) return;
_mMutex.ReleaseMutex();
_mMutex.Close();
_mMutex = null;
}
示例11: OnExit
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
var container = TinyIoCContainer.Current;
container.Resolve<AppHelper>().OnExitApp(this);
}
示例12: Current_Exit
void Current_Exit(object sender, ExitEventArgs e)
{
if (_mainViewModel != null)
{
_mainViewModel.Dispose();
}
}
示例13: OnExit
protected override void OnExit(ExitEventArgs e)
{
Messenger.Default.Unregister<NotificationMessage>(this, MessageReceived);
DatabaseStarter.StopDatabase();
base.OnExit(e);
}
示例14: OnExit
protected override void OnExit(ExitEventArgs e)
{
controller.Shutdown();
container.Dispose();
base.OnExit(e);
}
示例15: OnExit
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
SimpleIoc.Default.GetInstance<IRemoteClientListener>().Stop();
SimpleIoc.Default.GetInstance<ClientListViewModel>().Dispose();
}