当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.DeleteEventArgs类代码示例

本文整理汇总了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;
    }
开发者ID:esterdam,项目名称:ad,代码行数:7,代码来源:MainWindow.cs

示例2: OnDeleteEvent

    /// <summary>
    /// The on delete event.
    /// </summary>
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        CommLayerManager.Instance.Dispose();

        Application.Quit();
        a.RetVal = true;
    }
开发者ID:willy40,项目名称:testmono,代码行数:10,代码来源:MainWindow.cs

示例3: OnDeleteEvent

 protected void OnDeleteEvent (object o, DeleteEventArgs args)
 {
     if (scanningThread != null && scanningThread.IsAlive)
         scanningThread.Abort();
     
     Application.Quit();
 }
开发者ID:MonoGame,项目名称:MonoGame.Packager,代码行数:7,代码来源:MainWindow.cs

示例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;
    }      
开发者ID:123asd123A,项目名称:Samples,代码行数:12,代码来源:MainWindow.cs

示例5: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        Application.Quit ();
        a.RetVal = true;

        KeyKeeper.dbConnector.getdbAcces().close();
    }
开发者ID:BrainForge,项目名称:KeyKeeper,代码行数:7,代码来源:MainWindow.cs

示例6: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        dbConnection.Close ();

        Application.Quit ();
        a.RetVal = true;
    }
开发者ID:joseginer,项目名称:ad,代码行数:7,代码来源:MainWindow.cs

示例7: OnDeleteEvent

 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     dock.SaveLayouts( "config.layout" );
     toolbarFrame.SaveStatus("toolbar.status");
     Application.Quit ();
     a.RetVal = true;
 }
开发者ID:rdafoe,项目名称:Cage,代码行数:7,代码来源:Workbench.cs

示例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 ();
 }
开发者ID:BackupTheBerlios,项目名称:simetron,代码行数:7,代码来源:ToplevelGladeTest.cs

示例9: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        client.Disconnect ();

        Application.Quit ();
        a.RetVal = true;
    }
开发者ID:rastabaddon,项目名称:QCCTV,代码行数:7,代码来源:MainWindow.cs

示例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 ();
		}
开发者ID:jdliue,项目名称:SiK,代码行数:17,代码来源:MainWindow.cs

示例11: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        Program.SaveSettings();
        Application.Quit ();
        a.RetVal = true;

        Environment.Exit(0);
    }
开发者ID:tcvicio,项目名称:PGE-Project,代码行数:8,代码来源:MainWindow.cs

示例12: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        iserver.Dispose();
        dserver.Dispose();

        Application.Quit ();
        a.RetVal = true;
    }
开发者ID:djpnewton,项目名称:remote_trackpad,代码行数:8,代码来源:MainWindow.cs

示例13: OnDeleteEvent

 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     quit = true;
     readThread.Join();
     sp.Close();
     Application.Quit ();
     a.RetVal = true;
 }
开发者ID:autifkhan,项目名称:disorg,代码行数:8,代码来源:MainWindow.cs

示例14: OnDeleteEvent

    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        if (_streamer != null)
            _streamer.Dispose();

        GtkApplication.Quit ();
        a.RetVal = true;
    }
开发者ID:danhigham,项目名称:MonoCloud,代码行数:8,代码来源:MainWindow.cs

示例15: OnDeleteEvent

 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     this.Scanner.Close();
     this.muteImage.Destroy();
     this.audioImage.Destroy();
     Application.Quit();
     a.RetVal = true;
 }
开发者ID:bambams,项目名称:zbar-sharp,代码行数:8,代码来源:MainWindow.cs


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