示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (StrategyGameThread game = new StrategyGameThread())
     {
         game.Run();
     }
 }
示例#2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (StrategyGameThread game = new StrategyGameThread())
     {
         game.Run();
     }
 }
        public MainWindow()
        {
            InitializeComponent();

            //inicianlizando a surface do jogo
            XNAgameThread = new StrategyGameThread(pcbTeste.Handle, this, pcbTeste);

            //setando o metodo do sizechanged do picture box pro StrategyGameThread tratar
            pcbTeste.SizeChanged += XNAgameThread.pictureBox_SizeChanged;

            //setando a localização do jogo
            System.Threading.Thread.CurrentThread.CurrentUICulture =
                    new System.Globalization.CultureInfo("pt-BR");
        }