//--------------------------------------------------------------------- /// <summary> /// Init the application, create the AppControler. /// </summary> private void InitAppCtrl() { // Create and init the Application Controller _appCtrl = AppCtrlBuilder.CreateAppCtrl(); // start the application (load data,...): show the splash screen _appCtrl.StartApp(); }
// set the ctrl public void SetAppCtrl(IAppCtrl ctrl) { _ctrl = ctrl; }
protected BasePresenter(IAppCtrl ctrl, TView view) { Ctrl = ctrl; View = view; }
public ViewStatisticsPresenter(IAppCtrl ctrl, IViewStatistics view) : base(ctrl, view) { View.Save += () => ChangeReport(View.fileName); }
public MainPresenter(IAppCtrl ctrl, IMainView view) : base(ctrl, view) { View.ViewReportCommand += ViewReportCommand; }