loupiottes/DMX-2.0/MainWindow.cs

34 lines
No EOL
557 B
C#

using System;
using Gtk;
namespace DMX2
{
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;
}
protected void OnQuitActionActivated (object sender, EventArgs e)
{
Application.Quit ();
}
protected void OnCircuitsActionActivated (object sender, EventArgs e)
{
GestionCircuits gc= new GestionCircuits();
gc.Parent=this;
gc.Run();
}
}
}