Example #1
0
 public void LoadState(CouncilState state)
 {
     gslSelector.Speakers = state.GSLList.ToList();
     modSelector.Speakers = state.ModList.ToList();
     CurrentMod           = state.CurrentMod;
     CurrentUnmod         = state.CurrentUnmod;
 }
Example #2
0
 private void stateXMLToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (xmlFilePicker.ShowDialog() == DialogResult.Cancel)
     {
         return;
     }
     else
     {
         CouncilState.LoadState(xmlFilePicker.FileName);
         MessageBox.Show("Loaded the file", "File Loaded", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #3
0
 private void saveStateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CouncilState.SaveState(gslSelector.Speakers, modSelector.Speakers, CurrentMod, CurrentUnmod);
 }