Exemple #1
0
        static PintaCore()
        {
            // Resources and Settings are intialized first so later
            // Managers can access them as needed.
            Resources = new ResourceManager();
            Settings  = new SettingsManager();

            Actions      = new ActionManager();
            Workspace    = new WorkspaceManager();
            Layers       = new LayerManager();
            PaintBrushes = new PaintBrushManager();
            Tools        = new ToolManager();
            System       = new SystemManager();
            LivePreview  = new LivePreviewManager();
            Palette      = new PaletteManager();
            Chrome       = new ChromeManager();
            Effects      = new EffectsManager();

            Services = new ServiceManager();

            Services.AddService <IResourceService> (Resources);
            Services.AddService <ISettingsService> (Settings);
            Services.AddService(Actions);
            Services.AddService <IWorkspaceService> (Workspace);
            Services.AddService(Layers);
            Services.AddService <IPaintBrushService> (PaintBrushes);
            Services.AddService <IToolService> (Tools);
            Services.AddService(System);
            Services.AddService(LivePreview);
            Services.AddService <IPaletteService> (Palette);
            Services.AddService(Chrome);
            Services.AddService(Effects);
        }
Exemple #2
0
 static PintaCore()
 {
     Resources    = new ResourceManager();
     Actions      = new ActionManager();
     Workspace    = new WorkspaceManager();
     Layers       = new LayerManager();
     PaintBrushes = new PaintBrushManager();
     Tools        = new ToolManager();
     History      = new HistoryManager();
     System       = new SystemManager();
     LivePreview  = new LivePreviewManager();
     Palette      = new PaletteManager();
     Settings     = new SettingsManager();
     Chrome       = new ChromeManager();
     Effects      = new EffectsManager();
 }