private void ButtonNewVariableClick(object sender, EventArgs e) { var ve = new VariableEditor(ref _es, _dbPath, _dbFileName); ve.ShowDialog(); comboBoxVariable.DataSource = _es.Variables.Select(x => x.Name); comboBoxVariable.SelectedIndex = comboBoxVariable.Items.Count - 1; comboBoxValue.DataSource = _es.Values.Where(x => x.DomainID == _selectedVariable.DomainID).Select(x => x.Name); }
private void VariablesToolStripMenuItemClick(object sender, EventArgs e) { ChangeStatusStrip("Редактирование переменных"); var ve = new VariableEditor(ref _esCopy, _dbPath, _dbCopyFileName); ve.ShowDialog(); ChangeStatistics(); NormalizeStatusStrip(); if (!_somethingChanged) { Text += "*"; } _somethingChanged = true; }