public override void Run() { Altaxo.Current.SetResourceService(new ResourceServiceWrapper()); Altaxo.Current.SetProjectService(new Altaxo.Main.ProjectService()); Altaxo.Current.SetGUIFactoryService(new Altaxo.Main.Services.GUIFactoryService()); Altaxo.Current.SetPrintingService(new Altaxo.Main.PrintingService()); Altaxo.Current.ProjectService.ProjectChanged += new ProjectEventHandler(((AltaxoSDWorkbench)Altaxo.Current.Workbench).EhProjectChanged); // we construct the main document (for now) Altaxo.Current.ProjectService.CurrentOpenProject = new AltaxoDocument(); // less important services follow now Altaxo.Main.Services.FitFunctionService fitFunctionService = new Altaxo.Main.Services.FitFunctionService(); Altaxo.Current.SetFitFunctionService(fitFunctionService); AddInTree.GetTreeNode("/Altaxo/BuiltinTextures").BuildChildItems(this); }
public override void Run() { Altaxo.Current.SetResourceService(new ResourceServiceWrapper()); Altaxo.Current.SetProjectService( new Altaxo.Main.ProjectService() ); Altaxo.Current.SetGUIFactoryService(new Altaxo.Main.Services.GUIFactoryService()); Altaxo.Current.SetPrintingService(new Altaxo.Main.PrintingService()); Altaxo.Current.ProjectService.ProjectChanged += new ProjectEventHandler(((AltaxoSDWorkbench)Altaxo.Current.Workbench).EhProjectChanged); // we construct the main document (for now) Altaxo.Current.ProjectService.CurrentOpenProject = new AltaxoDocument(); // less important services follow now Altaxo.Main.Services.FitFunctionService fitFunctionService = new Altaxo.Main.Services.FitFunctionService(); Altaxo.Current.SetFitFunctionService(fitFunctionService); AddInTree.GetTreeNode("/Altaxo/BuiltinTextures").BuildChildItems(this); }
public override void Run() { Altaxo.Current.ProjectService.ProjectChanged += new ProjectEventHandler(Altaxo.Current.Workbench.EhProjectChanged); // less important services follow now Altaxo.Main.Services.FitFunctionService fitFunctionService = new Altaxo.Main.Services.FitFunctionService(); Altaxo.Current.SetFitFunctionService(fitFunctionService); AddInTree.GetTreeNode("/Altaxo/BuiltinTextures").BuildChildItems<object>(this); var colorSets = AddInTree.GetTreeNode("/Altaxo/ApplicationColorSets").BuildChildItems<Tuple<IColorSet, bool>>(this); foreach (var entry in colorSets) { IColorSet storedList; ColorSetManager.Instance.TryRegisterList(entry.Item1, ItemDefinitionLevel.Application, out storedList); if (entry.Item2) ColorSetManager.Instance.DeclareAsPlotColorList(storedList); } Altaxo.Main.Services.ParserServiceConnector.Initialize(); Altaxo.Serialization.AutoUpdates.UpdateDownloaderStarter.Run(); }