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(); }
public PreviewStatementMessage(StatementFormPresenter statementFormPresenter) { StatementFormPresenter = statementFormPresenter; }
public ActiveStatementMessage(StatementFormPresenter statementFormPresenter) { StatementFormPresenter = statementFormPresenter; }
public CloseStatementFormMessage(StatementFormPresenter statementFormPresenter) { StatementFormPresenter = statementFormPresenter; }
public OpenStatementFormMessage(StatementFormPresenter statementFormPresenter) { StatementFormPresenter = statementFormPresenter; }
private void OnPreviewReportButtonPushed(StatementFormPresenter statementFormPresenter) { var report = statementFormPresenter.CreateReport(); _reportBuilder.ShowReport(report); }