Ejemplo n.º 1
0
        private void UI_element_Clicked(object sender, EventArgs e)
        {
            if (!parameters.IsFolder())
            {
                parameters.GetAdvancedParams();

                parent.MapSelected(this);
            }
        }
Ejemplo n.º 2
0
 public void SetContent(MapParameters parameters)
 {
     if (!parameters.IsFolder())
     {
         ScenarioName.Content      = parameters.Basic.scenario_name;
         PlayersValue.Content      = parameters.Basic.players_value;
         MapSize.Content           = parameters.Basic.width_size.ToString() + 'x' + parameters.Basic.height_size.ToString();
         VictoryConditions.Content = parameters.Basic.victory_conditions;
         DefeatConditions.Content  = parameters.Basic.defeat_conditions;
     }
     else
     {
         string name = Path.GetFileName(parameters.Basic.scenario_name);
         if (name == Settings.Default.MAPS_DIRECTORY_NAME)
         {
             ScenarioName.Content = "...";
         }
         else
         {
             ScenarioName.Content = name;
         }
     }
 }