/// <summary>
 /// Gets text from textBox and calls Save with the text from textBox. After that closes panel.
 /// </summary>
 /// <param name="sender">The sender of the action.</param>
 /// <param name="e">The arguments of the action.</param>
 private void SaveGame(object sender, Miyagi.Common.Events.MouseButtonEventArgs e)
 {
     var saveName = textBox.Text;
     if (saveName == "") {
         saveName = "NoName";
     }
     Game.Save(saveName + ".save");
     Game.IGameGUI.ClosePanel(panelToClose);
 }
        /// <summary>
        /// MouseClick action which closing setted type of the panel.
        /// </summary>
        /// <param name="sender">The sender of the action.</param>
        /// <param name="e">The arguments of the action.</param>
        private void DisposePanel(object sender, Miyagi.Common.Events.MouseEventArgs e)
        {
            // Dispose the panel

            Game.IGameGUI.ClosePanel(panelToClose);
        }
 /// <summary>
 /// MouseClick action which calls OnMouseClick() and print answer to the game console.
 /// </summary>
 /// <param name="sender">The sender of the action.</param>
 /// <param name="e">The arguments of the action.</param>
 private void GameActionClicked(object sender, Miyagi.Common.Events.MouseButtonEventArgs e)
 {
     Game.PrintToGameConsole(action.OnMouseClick());
 }
 /// <summary>
 /// Calls CreateTraveler with selected number of the SolarSystem (numberOfItem) and traveler(storedObject).
 /// </summary>
 /// <param name="sender">The sender of the action.</param>
 /// <param name="e">The arguments of the action.</param>
 private void Travel(object sender, Miyagi.Common.Events.MouseButtonEventArgs e)
 {
     Game.SolarSystemManager.CreateTraveler(numberOfItem, storedObject);
     Game.IGameGUI.ClosePanel(panelToClose);
 }
 /// <summary>
 /// Calls GroupManager function ChangeSolarSystem and closes the panel of the stted type.
 /// </summary>
 /// <param name="sender">The sender of the action.</param>
 /// <param name="e">The arguments of the action.</param>
 private void SelectSolarSystem(object sender, Miyagi.Common.Events.MouseButtonEventArgs e)
 {
     Game.SolarSystemManager.ChangeSolarSystem(numberOfItem);
     Game.IGameGUI.ClosePanel(panelToClose);
 }
 /// <summary>
 /// Calls Game.Load and load given mission from stored game mission path. Also closes the panel type.
 /// </summary>
 /// <param name="sender">The sender of the action.</param>
 /// <param name="e">The arguments of the action.</param>
 private void SelectLoadMission(object sender, Miyagi.Common.Events.MouseButtonEventArgs e)
 {
     Game.IGameGUI.ClosePanel(panelToClose);
     Game.Load((string)storedObject);
 }