コード例 #1
0
 public void OnOpenStatementFormMessage(StatementFormPresenter statementFormPresenter, List <Tuple <string, object> > listStatementFormTagText)
 {
     UpdateStatmentPresenterList(statementFormPresenter);
     _mainForm.SetWindowsListDropDownEnabledState(true);
     _mainForm.SetPreviewButtonEnabledState(true);
     _mainForm.CreateWindowDropDownList(_listStatementFormTagText);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void OnStatementFormActivated(StatementFormPresenter statementFormPresenter)
        {
            _statementFormPresenter = statementFormPresenter;
            string statementFormName = statementFormPresenter.GetStatementFormName()
                                       .Substring(statementFormPresenter.GetStatementFormName().LastIndexOf('\\') + 1);

            _mainForm.SetMainFormTitle(statementFormName);
        }
コード例 #4
0
        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;
 }
コード例 #9
0
        private void OnPreviewReportButtonPushed(StatementFormPresenter statementFormPresenter)
        {
            var report = statementFormPresenter.CreateReport();

            _reportBuilder.ShowReport(report);
        }