public void LoadGame(object sender, MainMenuEventArgs args)
 {
     //the CommandCenter Graphics is loaded only once
     if (DisplayManager.CommandCenterLoaded == false)
         LoadCommandCenterGraphics();
     else
         DisplayManager.InstanciateInterface(IOOperation.CommandCenter);
 }
        public void NewGame(object sender, MainMenuEventArgs args)
        {
            //creates the Profile Folder for the new profile
            DisplayManager.userList.AddUser(args.UserName);

            //the CommandCenter Graphics is loaded only once
            if (DisplayManager.CommandCenterLoaded == false)
                LoadCommandCenterGraphics();
            else
            {
                DisplayManager.InstanciateInterface(IOOperation.CommandCenter);
            }
        }
Ejemplo n.º 3
0
 void mainMenu_OnDeleteUSerClick(object sender, MainMenuEventArgs e)
 {
     IOManager.DeleteUser(e, new MainMenuEventArgs(e.UserName));
 }
Ejemplo n.º 4
0
        void mainMenu_OnNewGameStartClick(object sender, MainMenuEventArgs e)
        {
            mainMenu.Hide();

            //sets the input profile
            ProfilesManager.SetProfile(e.UserName, true);

            //IOManagerEventReceiver will test if the CommandCenter Graphics is already loaded
            IOManager.NewGame(e, new MainMenuEventArgs(e.UserName));
        }
Ejemplo n.º 5
0
        void mainMenu_OnLoadGameClick(object sender, MainMenuEventArgs e)
        {
            mainMenu.Hide();

            //IOManagerEventReceiver will test if the CommandCenter Graphics is already loaded
            IOManager.LoadGame(this, e);

            //sets the selected profile
            ProfilesManager.SetProfile(e.UserName, false);
        }
 public void QuitGame(object sender, MainMenuEventArgs args) { }
 public void DeleteUser(object sender, MainMenuEventArgs args)
 {
     DisplayManager.userList.DeleteUser(args.UserName);
 }