Пример #1
0
        private void BinaryOperation()
        {
            Set    resultSet     = new Set("");
            string operationName = binaryOperationComboBox.Text.Substring(0,
                                                                          binaryOperationComboBox.Text.Length - 1) + "я";

            switch (binaryOperationComboBox.SelectedIndex)
            {
            case 0:
                resultSet = field.Disjunction(firstBinarySetComboBox.SelectedIndex,
                                              secondBinaryComboBox.SelectedIndex);
                break;

            case 1:
                resultSet = field.Conjuction(firstBinarySetComboBox.SelectedIndex,
                                             secondBinaryComboBox.SelectedIndex);
                break;
            }

            AddSetDialog(resultSet, operationName);
        }