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); }
static PintaCore() { Resources = new ResourceManager (); Actions = new ActionManager (); Workspace = new WorkspaceManager (); Layers = new LayerManager (); Tools = new ToolManager (); History = new HistoryManager (); System = new SystemManager (); LivePreview = new LivePreviewManager (); Palette = new PaletteManager (); Settings = new SettingsManager (); }
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(); }
public static void Initialize(Toolbar toolToolBar, Label statusTextLabel, DrawingArea drawingArea, TreeView historyStack, Window mainWindow) { Chrome = new ChromeManager (); Chrome.Initialize (toolToolBar, statusTextLabel, drawingArea, historyStack, mainWindow); Palette = new PaletteManager (); Actions.RegisterHandlers (); }
public static void Initialize(Toolbar toolToolBar, Label statusTextLabel, DrawingArea drawingArea, TreeView historyStack, Window mainWindow, IProgressDialog progressDialog, Viewport viewport) { Chrome = new ChromeManager (); Chrome.Initialize (toolToolBar, statusTextLabel, drawingArea, historyStack, mainWindow, progressDialog); Palette = new PaletteManager (); Workspace.Initialize (viewport); Actions.RegisterHandlers (); }