本文整理汇总了C#中Gtk.DeleteEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DeleteEventArgs类的具体用法?C# DeleteEventArgs怎么用?C# DeleteEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeleteEventArgs类属于Gtk命名空间,在下文中一共展示了DeleteEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
ApplicationContext.Instance.DbConnection.Close ();
Application.Quit ();
a.RetVal = true;
}
示例2: OnDeleteEvent
/// <summary>
/// The on delete event.
/// </summary>
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
CommLayerManager.Instance.Dispose();
Application.Quit();
a.RetVal = true;
}
示例3: OnDeleteEvent
protected void OnDeleteEvent (object o, DeleteEventArgs args)
{
if (scanningThread != null && scanningThread.IsAlive)
scanningThread.Abort();
Application.Quit();
}
示例4: OnDeleteEvent
/// <summary>
/// Called when [delete event].
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="a">The <see cref="DeleteEventArgs" /> instance containing the event data.</param>
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
this.waveWidget.Destroy();
Application.Quit();
a.RetVal = true;
}
示例5: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
KeyKeeper.dbConnector.getdbAcces().close();
}
示例6: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
dbConnection.Close ();
Application.Quit ();
a.RetVal = true;
}
示例7: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
dock.SaveLayouts( "config.layout" );
toolbarFrame.SaveStatus("toolbar.status");
Application.Quit ();
a.RetVal = true;
}
示例8: OnDelete
public static void OnDelete(object obj, DeleteEventArgs args)
{
Console.WriteLine (window.Toplevel.Handle);
Console.WriteLine (item.Toplevel.Handle);
Console.WriteLine (label.Toplevel.Handle);
Application.Quit ();
}
示例9: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
client.Disconnect ();
Application.Quit ();
a.RetVal = true;
}
示例10: delete
/// <summary>
/// Handles the window DeleteEvent by instigating the termination of the application.
/// </summary>
/// <param name='sender'>
/// Sender.
/// </param>
/// <param name='a'>
/// A.
/// </param>
private void delete (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
if (QuitEvent != null)
QuitEvent ();
}
示例11: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
Program.SaveSettings();
Application.Quit ();
a.RetVal = true;
Environment.Exit(0);
}
示例12: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
iserver.Dispose();
dserver.Dispose();
Application.Quit ();
a.RetVal = true;
}
示例13: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
quit = true;
readThread.Join();
sp.Close();
Application.Quit ();
a.RetVal = true;
}
示例14: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
if (_streamer != null)
_streamer.Dispose();
GtkApplication.Quit ();
a.RetVal = true;
}
示例15: OnDeleteEvent
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
this.Scanner.Close();
this.muteImage.Destroy();
this.audioImage.Destroy();
Application.Quit();
a.RetVal = true;
}