static void Main() { using (var game = new MonoDisplay()) { var gui = new MainGUI(); Config.SubscribeOnReadEvent(gui.OnConfigRead); gui.myGame = game; gui.Initialize(); gui.Show(); game.Run(); } }
public MainGUI() { InitializeComponent(); mainGUI = this; }