public void LoadState(CouncilState state) { gslSelector.Speakers = state.GSLList.ToList(); modSelector.Speakers = state.ModList.ToList(); CurrentMod = state.CurrentMod; CurrentUnmod = state.CurrentUnmod; }
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); } }
private void saveStateToolStripMenuItem_Click(object sender, EventArgs e) { CouncilState.SaveState(gslSelector.Speakers, modSelector.Speakers, CurrentMod, CurrentUnmod); }