loupiottes/DMX-2.0/Main.cs
tzim eb10eb62eb Ajout des styles.
Qq modifs sur seqmacro
2013-11-04 13:29:54 +00:00

32 lines
No EOL
670 B
C#

using System;
using Gtk;
namespace DMX2
{
class MainClass
{
public static void Main (string[] args)
{
Application.Init ();
if(System.IO.File.Exists("style.gtkrc")) Gtk.Rc.Parse("style.gtkrc");
else using (System.IO.Stream stream =
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("style.gtkrc"))
{
using (System.IO.TextReader reader = new System.IO.StreamReader(stream))
{
Gtk.Rc.ParseString (reader.ReadToEnd());
}
}
MainWindow win = new MainWindow ();
win.Show ();
Application.Run ();
if (Conduite.Courante != null) {
Conduite.Courante.Dispose();
}
}
}
}