示例#1
0
        //

        public MainWindow()
        {
            InitializeComponent();

            TheMainWindow = this;

            if (MainMenuWindow == null)
            {
                MainMenuWindow = new MainMenu();
            }

            if (GameWindow == null)
            {
                GameWindow = new GameWindow();
            }

            if (Drawer == null)
            {
                Drawer = new MapEditorWindow();
            }

            if (ScenarioWindow == null)
            {
                ScenarioWindow = new ScenarioSelectionWindow();
            }

            if (HelpWindow == null)
            {
                HelpWindow = new HelpWindow();
            }
        }
示例#2
0
        //
        public MainWindow()
        {
            InitializeComponent();

            TheMainWindow = this;

            if (MainMenuWindow == null)
                MainMenuWindow = new MainMenu();

            if (GameWindow == null)
                GameWindow = new GameWindow();

            if (Drawer == null)
                Drawer = new MapEditorWindow();

            if (ScenarioWindow == null)
                ScenarioWindow = new ScenarioSelectionWindow();

            if (HelpWindow == null)
                HelpWindow = new HelpWindow();
        }