public void OnOpenStatementFormMessage(StatementFormPresenter statementFormPresenter, List <Tuple <string, object> > listStatementFormTagText)
 {
     UpdateStatmentPresenterList(statementFormPresenter);
     _mainForm.SetWindowsListDropDownEnabledState(true);
     _mainForm.SetPreviewButtonEnabledState(true);
     _mainForm.CreateWindowDropDownList(_listStatementFormTagText);
 }
        public void UpdateStatmentPresenterList(StatementFormPresenter statementFormPresenter)
        {
            _listStatementFormPresenters.Add(statementFormPresenter);
            var textTagStatementFormPresenterTuple = new Tuple <string, object>(statementFormPresenter.GetStatementFormName()
                                                                                .Substring(statementFormPresenter.GetStatementFormName().LastIndexOf('\\') + 1), statementFormPresenter);

            _listStatementFormTagText.Add(textTagStatementFormPresenterTuple);
        }
        public void OnStatementFormActivated(StatementFormPresenter statementFormPresenter)
        {
            _statementFormPresenter = statementFormPresenter;
            string statementFormName = statementFormPresenter.GetStatementFormName()
                                       .Substring(statementFormPresenter.GetStatementFormName().LastIndexOf('\\') + 1);

            _mainForm.SetMainFormTitle(statementFormName);
        }
        public void OnCloseStatementMessage(StatementFormPresenter statementFormPresenter)
        {
            _listStatementFormPresenters.Remove(statementFormPresenter);
            var textTagStatementFormPresenterTuple = new Tuple <string, object>(statementFormPresenter.GetStatementFormName()
                                                                                .Substring(statementFormPresenter.GetStatementFormName().LastIndexOf('\\') + 1), statementFormPresenter);

            _listStatementFormTagText.Remove(textTagStatementFormPresenterTuple);
            _mainForm.CreateWindowDropDownList(_listStatementFormTagText);
            ResetMainForm();
        }
Пример #5
0
 public PreviewStatementMessage(StatementFormPresenter statementFormPresenter)
 {
     StatementFormPresenter = statementFormPresenter;
 }
Пример #6
0
 public ActiveStatementMessage(StatementFormPresenter statementFormPresenter)
 {
     StatementFormPresenter = statementFormPresenter;
 }
Пример #7
0
 public CloseStatementFormMessage(StatementFormPresenter statementFormPresenter)
 {
     StatementFormPresenter = statementFormPresenter;
 }
Пример #8
0
 public OpenStatementFormMessage(StatementFormPresenter statementFormPresenter)
 {
     StatementFormPresenter = statementFormPresenter;
 }
        private void OnPreviewReportButtonPushed(StatementFormPresenter statementFormPresenter)
        {
            var report = statementFormPresenter.CreateReport();

            _reportBuilder.ShowReport(report);
        }