0
MonoDevelop로 새로운 Gtk # 솔루션을 시작했습니다. 이제 어디서 넣을 수 있습니까? 예외 처리기는 스택 추적과 함께 사용자에게 대화 상자를 팝업합니다. 이 작업을 수행 할 수있는 기존 라이브러리가 있습니까? https://exceptionreporter.codeplex.com/Gtk # 응용 프로그램에 전역 예외 처리기를 넣을 위치는 어디입니까?
Main.cs 같은
는뭔가 :
using System;
using Gtk;
namespace foobar
{
class MainClass
{
public static void Main (string[] args)
{
Application.Init();
MainWindow win = new MainWindow();
win.Show();
Application.Run();
}
}
}
MainWindow.cs :
using System;
using Gtk;
public partial class MainWindow: Gtk.Window
{
public MainWindow(): base (Gtk.WindowType.Toplevel)
{
Build();
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit();
a.RetVal = true;
}
}