public PictureSlidesLabWindowViewModel(IPictureSlidesLabWindowView view, 
     IStylesDesigner stylesDesigner = null)
 {
     View = view;
     ImageDownloader = new ContextDownloader(View.GetThreadContext());
     InitStorage();
     InitUiModels();
     CleanUnusedPersistentData();
     Designer = stylesDesigner ?? new StylesDesigner();
 }
示例#2
0
 public PictureSlidesLabWindowViewModel(IPictureSlidesLabWindowView view,
                                        IStylesDesigner stylesDesigner = null)
 {
     View            = view;
     ImageDownloader = new ContextDownloader(View.GetThreadContext());
     InitStorage();
     InitUiModels();
     CleanUnusedPersistentData();
     Designer = stylesDesigner ?? new StylesDesigner();
 }
 public PictureSlidesLabWindowViewModel(IPictureSlidesLabWindowView view,
                                        IStylesDesigner stylesDesigner = null)
 {
     Logger.Log("Init PSL View Model begins");
     View            = view;
     ImageDownloader = new ContextDownloader(View.GetThreadContext());
     InitStorage();
     InitUiModels();
     InitFontFamilies();
     CleanUnusedPersistentData();
     Designer = stylesDesigner ?? new StylesDesigner();
     Designer.SetSettings(Settings);
     OptionsFactory  = new StyleOptionsFactory();
     VariantsFactory = new StyleVariantsFactory();
     Logger.Log("Init PSL View Model done");
 }
        public PictureSlidesLabWindowViewModel(IPictureSlidesLabWindowView view,
                                               IStylesDesigner stylesDesigner = null)
        {
            Logger.Log("Init PSL View Model begins");
            View            = view;
            ImageDownloader = new ContextDownloader(View.GetThreadContext());
            InitStorage();
            InitUiModels();
            InitFontFamilies();
            CleanUnusedPersistentData();
            Designer = stylesDesigner ?? new StylesDesigner();
            Designer.SetSettings(Settings);
            OptionsFactory  = new StyleOptionsFactory();
            VariantsFactory = new StyleVariantsFactory();

            var catalog = new AggregateCatalog(
                new AssemblyCatalog(Assembly.GetExecutingAssembly()));
            var container = new CompositionContainer(catalog);

            container.ComposeParts(this);

            Logger.Log("Init PSL View Model done");
        }
 public PictureSlidesLabWindowViewModel(IPictureSlidesLabWindowView view, 
     IStylesDesigner stylesDesigner = null)
 {
     Logger.Log("Init PSL View Model begins");
     View = view;
     ImageDownloader = new ContextDownloader(View.GetThreadContext());
     InitStorage();
     InitUiModels();
     InitFontFamilies();
     CleanUnusedPersistentData();
     Designer = stylesDesigner ?? new StylesDesigner();
     Designer.SetSettings(Settings);
     OptionsFactory = new StyleOptionsFactory();
     VariantsFactory = new StyleVariantsFactory();
     Logger.Log("Init PSL View Model done");
 }