void EdytujToolStripMenuItemClick(object sender, EventArgs e) { // edytuj zbiór wyświetlaczy if (dataGridView5.CurrentRow != null) { LED7DisplayOutputSet dose = (LED7DisplayOutputSet)dataGridView5.CurrentRow.Tag; AddEditLED7DisplayOutputSetDialog d = new AddEditLED7DisplayOutputSetDialog(Configuration, dose); if (d.ShowDialog(this) == DialogResult.OK) { ShowDisplays7LEDSets(); } } }
void DodajToolStripMenuItemClick(object sender, EventArgs e) { // dodaj nowy zbiór wyświetlaczy AddEditLED7DisplayOutputSetDialog d = new AddEditLED7DisplayOutputSetDialog(Configuration, null); if (d.ShowDialog(this) == DialogResult.OK) { List <LED7DisplayOutput> doses = new List <LED7DisplayOutput>(Configuration.LED7DisplayOutputs); doses.Add(d.LED7DisplayOutputSet); Configuration.LED7DisplayOutputs = doses.ToArray(); ShowDisplays7LEDSets(); } }