public static void Main(string[] args) { Application.Init(); MainWindow win = new MainWindow(); win.Show(); Application.Run(); }
public MainWindow() : base(Gtk.WindowType.Toplevel) { mSingleton = this; Build(); this.mController = new SDLController(); this.mController.Closed += delegate { this.Quit(); }; this.mController.PlayerData = new UDPPlayerData(); new Thread(this.ControllerLoop).Start(); this.mUpdaterThread = new Thread(this.UpdaterLoop); this.mUpdaterThread.Start(); this.StatusBar.Push(0, ""); GLib.Timeout.Add(1000, this.FPSLoop); this.mSoapFilter.Name = "OpenVP preset (XML)"; this.mSoapFilter.AddPattern("*.ovp"); this.mBinaryFilter.Name = "OpenVP preset (binary)"; this.mBinaryFilter.AddPattern("*.ovpb"); while (!this.mInitialized); }