/// <summary>
 /// Sets the instance of the selected space when the combo box selection is changed
 /// </summary>
 void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     selectedSpace = wiki.spaces[comboBoxSpaceName.SelectedIndex];
 }
Example #2
0
 /// <summary>
 /// Adds a collection of spaces to the wiki.
 /// </summary>
 /// <param name="_spaces"></param>
 public void AddSpaces(IEnumerable<String> _spaces)
 {
     foreach (String spaceName in _spaces)
     {
         Space space = new Space();
         space.name = spaceName;
         space.published = true;
         spaces.Add(space);
     }
 }