/// <summary> /// Метод запускает главное окно в программы /// </summary> public void Run() { try { _Form.ShowForm(); } catch (Exception ex) { _Service.ShowError(ex.Message); } }
private void _selfAsses_ChoiceClick(object sender, EventArgs e) { x = i; y = j; if (i < _manager.Alternatives.Length) { j++; } if (j >= _manager.Alternatives.Length) { i++; j = 0; } if (i == j) { j++; if (j >= _manager.Alternatives.Length) { i++; j = 0; } } if (i < _manager.Alternatives.Length) { _selfAsses.Alternative1 = _manager.Alternatives[i]; _selfAsses.Alternative2 = _manager.Alternatives[j]; matrix[x, y] = _selfAsses.ButValue; } else { if (x < _manager.Alternatives.Length) { matrix[x, y] = _selfAsses.ButValue; } orderedIndexAlternatives = matrix.PreferenceMatrixProcessing(); _resultForm.PrintResult(orderedIndexAlternatives, _manager.Alternatives); _selfAsses.HideForm(); _resultForm.ShowForm(); } }