// Расписание private void buttonShedule_Click(object sender, EventArgs e) { if (listBoxScenario.SelectedIndex < 0) { return; } FormShedule FS = new FormShedule(); Scenario s = list[listBoxScenario.SelectedIndex]; FS.listBox.Items.Clear(); foreach (var x in s.Shedule) { FS.listBox.Items.Add(x); } if (FS.ShowDialog() != DialogResult.OK) { return; } s.Shedule.Clear(); foreach (var x in FS.listBox.Items) { s.Shedule.Add(x.ToString()); } Service.SaveList(list, !checkBoxSQLite.Checked); NextStep = true; }
private void buttonShedule_Click(object sender, EventArgs e) { //MessageBox.Show("Если нажать, то будет запущен редактор расписания", "Справка"); if (listBoxScenario.SelectedIndex < 0) { return; } Scenario s = list[listBoxScenario.SelectedIndex]; FormShedule FS = new FormShedule(); FS.listBox.Items.Clear(); foreach (var x in s.Shedule) { FS.listBox.Items.Add(x); } if (FS.ShowDialog() != DialogResult.OK) { return; } s.Shedule.Clear(); foreach (var x in FS.listBox.Items) { s.Shedule.Add(x.ToString()); } Service.SaveList(list); NextStep = true; }