Пример #1
0
        public StandardEngine(
            ISettingsManager settingsManager,
            IBranchManager branchManager,
            ICommandLineManager commandLineManager,
            IBannerManager bannerManager,
            IAppearanceManager appearanceManager,
            IErrorManager errorManager,
            IDialogsManager dialogsManager,
            IHelpManager helpManager,
            IAdvancedMenuManager advancedMenuManager,
            IEndpointManager endpointManager
            )
        {
            SettingsManager = settingsManager;
            BranchManager = branchManager;
            BannerManager = bannerManager;
            AppearanceManager = appearanceManager;
            CommandLineManager = commandLineManager;
            ErrorManager = errorManager;
            DialogsManager = dialogsManager;
            HelpManager = helpManager;
            AdvancedMenuManager = advancedMenuManager;
            EndpointManager = endpointManager;

            Identifier = Guid.NewGuid();
        }
Пример #2
0
        public PrintJobView(PrintJobViewModel viewModel, IBannerManager bannerManager)
        {
            _bannerManager = bannerManager;
            DataContext    = viewModel;
            InitializeComponent();

            Loaded += async(sender, args) => await SetBanner();
        }
Пример #3
0
        public PrintJobView(PrintJobViewModel viewModel, IBannerManager bannerManager, IRegionManager regionManager)
        {
            _bannerManager = bannerManager;
            _regionManager = regionManager;
            DataContext    = viewModel;
            ViewModel      = viewModel;
            InitializeComponent();

            TransposerHelper.Register(this, viewModel);

            // Using button.Focus() - see also https://stackoverflow.com/a/45139201
            SaveButton.Click += delegate { SaveButton.Focus(); };

            Loaded += async(sender, args) => await SetBanner();
        }
 public BorderlessChildDialogModel(IDialogsManager dialogsManager, IBannerManager bannerManager, IAppearanceManager appearanceManager)
     : base(dialogsManager, bannerManager, appearanceManager)
 {
     ShowInTaskbar = false;
 }
Пример #5
0
 public BorderedChildDialogModel(IDialogsManager dialogsManager, IBannerManager bannerManager, IAppearanceManager appearanceManager)
     : base(dialogsManager, bannerManager, appearanceManager)
 {
     ShowInTaskbar = false;
     WindowStyle = WindowStyle.ToolWindow;
 }
Пример #6
0
 public BorderlessDialogModel(IDialogsManager dialogsManager, IBannerManager bannerManager, IAppearanceManager appearanceManager)
     : base(dialogsManager, bannerManager, appearanceManager, new BorderlessWindow())
 {
     ShowInTaskbar = true;
     SuppressCloseQuestion = true;
 }
Пример #7
0
 public BannerController(IBannerManager bannerManager)
 {
     _bannerManager = bannerManager;
 }
Пример #8
0
 public BorderedDialogModel(IDialogsManager dialogsManager, IBannerManager bannerManager, IAppearanceManager appearanceManager)
     : base(dialogsManager, bannerManager, appearanceManager, new StarkBorderedWindow())
 {
     ShowInTaskbar = true;
     WindowStyle = WindowStyle.SingleBorderWindow;
 }