Beispiel #1
0
 protected FlyerViewModelBase(SelectedMaterialProvider selectedMaterialProvider, IFontService fontService,
     ViewStates viewState)
 {
     this.viewState = viewState;
     SelectedMaterialProvider = selectedMaterialProvider;
     FontService = fontService;
     CanAddLogo = true;
 }
Beispiel #2
0
        protected FlyerMakerViewModelBase(List<Material> materials, Func<string, FontInfo> getFont,
            IFontService fontService, IWindowService windowService)
        {
            this.fontService = fontService;
            FontHelper.UpdateFonts(materials, getFont, this.fontService);

            this.windowService = windowService;

            SelectedMaterialProvider = new SelectedMaterialProvider();
            SelectedMaterialProvider.PropertyChanged += (s, e) => OnPropertyChanged("CanCreate");
        }
Beispiel #3
0
        public void OpenExternalEditWindow(SelectedMaterialProvider selectedMaterialProvider, IFontService fontService)
        {
            if (externalEditView != null)
            {
                CloseExternalEditWindow();
            }

            externalEditView = new ExternalEditView
            {
                DataContext = new ExternalViewModel(selectedMaterialProvider, fontService),
                Owner = mainWindow
            };
            externalEditView.Show();
        }
Beispiel #4
0
 public LayoutViewModel(SelectedMaterialProvider selectedMaterialProvider, IFontService fontService,
     ViewStates viewState)
     : base(selectedMaterialProvider, fontService, viewState)
 {
 }
Beispiel #5
0
 public ExternalViewModel(SelectedMaterialProvider selectedMaterialProvider, IFontService fontService)
 {
     SelectedMaterialProvider = selectedMaterialProvider;
     FontService = fontService;
 }