private void UnaryOperation() { Set resultSet = new Set(""); string operationName = unaryOperationComboBox.Text.Substring(0, unaryOperationComboBox.Text.Length - 1) + "я"; switch (unaryOperationComboBox.SelectedIndex) { case 0: resultSet = field.ReverseSet(unarySetComboBox.SelectedIndex); break; } AddSetDialog(resultSet, operationName); }