public EditorViewModel(EditorPluginLoader plugins, Settings settings) { this.plugins = plugins; Settings.Current = settings; service = new OnlineService(); AvailableProjects = new List <ProjectNameAndFontWeight>(); Error = Resources.GetApiKeyHere; SetupLogger(); VersionNumber = new VersionNumber(); plugins.FindAndLoadAllPlugins(); RegisterCommands(); SetApiKey(LoadDataFromRegistry("ApiKey")); SetInitialContentProject(); ConnectToOnlineServiceAndTryToLogin(); EditorPlugins = new List <EditorPluginView>(); messageViewModel = new PopupMessageViewModel(service); messageViewModel.MessageUpdated += RaisePopupMessageProperties; }
public EditorViewModel(EditorPluginLoader plugins, Settings settings) { this.plugins = plugins; Settings.Current = settings; service = new OnlineService(); AvailableProjects = new List<ProjectNameAndFontWeight>(); Error = Resources.GetApiKeyHere; SetupLogger(); VersionNumber = new VersionNumber(); plugins.FindAndLoadAllPlugins(); RegisterCommands(); SetApiKey(LoadDataFromRegistry("ApiKey")); SetInitialContentProject(); ConnectToOnlineServiceAndTryToLogin(); EditorPlugins = new List<EditorPluginView>(); messageViewModel = new PopupMessageViewModel(service); messageViewModel.MessageUpdated += RaisePopupMessageProperties; }