コード例 #1
0
        public MainWindowPresenter(MainWindowViewModel viewModel, IPageCreator pageCreator)
        {
            _viewModel   = viewModel;
            _pageCreator = pageCreator;

            BuildViewModel();
        }
コード例 #2
0
 public HomeController(IOrderManager orderManager, IPageCreator pageCreator, IMailReporter reporter)
 {
     _orderManager = orderManager;
     _pageCreator  = pageCreator;
     _reporter     = reporter;
     _itemsPerPage = 10;
 }
コード例 #3
0
 public ReportController(IPayItemSubcategoriesHelper payItemSubcategoriesHelper,
                         IReportControllerHelper reportControllerHelper,
                         IReportModelCreator reportModelCreator,
                         IPageCreator pageCreator)
 {
     _payItemSubcategoriesHelper = payItemSubcategoriesHelper;
     _reportControllerHelper     = reportControllerHelper;
     _reportModelCreator         = reportModelCreator;
     _pageCreator = pageCreator;
 }
コード例 #4
0
 public IPageCreator GetPageCreator()
 {
     lock (_lock)
     {
         if (_pageCreator == null)
         {
             _pageCreator = new PageCreator(GetMainService(), _synchronizationContext);
         }
         return(_pageCreator);
     }
 }
コード例 #5
0
 public static Page <MvcBootstrapHelper <TModel> > Page <TModel>(this IPageCreator <MvcBootstrapHelper <TModel> > creator, string text, string actionName, string controllerName, object routeValues = null)
 {
     return(creator.Page(text, null).SetAction(actionName, controllerName, routeValues));
 }
コード例 #6
0
        // Page

        public static Page <THelper> Page <THelper>(this IPageCreator <THelper> creator, string text, string href = "#")
            where THelper : BootstrapHelper <THelper>
        {
            return(new Page <THelper>(creator).SetHref(href).SetText(text));
        }