private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ShowIntro();

            if (Properties.Settings.Default.IsFullscreen)
            {
                WindowsManager.OpenFullScreen(this);
            }
            else
            {
                WindowsManager.OpenNonFullScreen(this);
            }

            WindowsManager.ReopenWindow(this, WindowsManager.MenuWindow);
            this.Close();
        }
 private void Back_Click(object sender, RoutedEventArgs e)
 {
     WindowsManager.ReopenWindow(this, WindowsManager.MenuWindow);
 }
 private void Window_Closed(object sender, EventArgs e)
 {
     WindowsManager.CloseAll();
 }
 private void isFullscreen_Unchecked(object sender, RoutedEventArgs e)
 {
     GolemsWindows.Properties.Settings.Default.IsFullscreen = false;
     WindowsManager.OpenNonFullScreen(this);
     resolutinBox.IsEnabled = true;
 }
 private void Back_Click(object sender, RoutedEventArgs e)
 {
     GolemsWindows.Properties.Settings.Default.Save();
     WindowsManager.ReopenWindow(this, WindowsManager.MenuWindow);
 }
 private void Button_OpenCampany3(object sender, RoutedEventArgs e)
 {
     WindowsManager.CampanyWindow.ChooseCampany(3);
     WindowsManager.ReopenWindow(this, WindowsManager.CampanyWindow);
 }
Exemplo n.º 7
0
		private void Exit_Click(object sender, RoutedEventArgs e) {
			WindowsManager.CloseAll();
		}
Exemplo n.º 8
0
 private void Button_StartGame(object sender, RoutedEventArgs e)
 {
     WindowsManager.ReopenWindow(this, WindowsManager.GameWindow);
 }
Exemplo n.º 9
0
		private void Credits_Click(object sender, RoutedEventArgs e) {
			WindowsManager.ReopenWindow(this, WindowsManager.CreditsWindow);
		}
Exemplo n.º 10
0
		private void Achievements_Click(object sender, RoutedEventArgs e) {
			WindowsManager.ReopenWindow(this, WindowsManager.AchievementsWindow);
		}
Exemplo n.º 11
0
		private void Settings_Click(object sender, RoutedEventArgs e) {
			WindowsManager.ReopenWindow(this, WindowsManager.SettingsWindow);
		}
Exemplo n.º 12
0
		private void Campany_Click(object sender, RoutedEventArgs e) {
			WindowsManager.ReopenWindow(this, WindowsManager.AllCampaniesWindow);
		}
Exemplo n.º 13
0
		private void Lobby_Click(object sender, RoutedEventArgs e) {
			WindowsManager.ReopenWindow(this, WindowsManager.LobbyWindow);
		}