static void Main() { // Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //try //{ Game game = new Game(); GameForm gf; gf = new GameForm(game); Thread t = new Thread(new ParameterizedThreadStart(game.Start)); t.Name = "GameLoop"; t.IsBackground = true; t.TrySetApartmentState(ApartmentState.STA); t.Start(gf); //Thread tt = new Thread(new ThreadStart(gf.Show2)); //tt.Start(); gf.Init(); //} //catch (Exception e) { MessageBox.Show(e.Message + e.InnerException + e.Source + e.StackTrace); } //if (t.ThreadState == ThreadState.Running) // t.Abort(); //Application.Run(new GameForm()); }
public GameForm(Game g) : base("Project Majestic") { // TODO: Complete member initialization this.Game = g; //this.Show2(); }
internal void Clicked(Game game) { throw new NotImplementedException(); }