コード例 #1
0
 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;
 }
コード例 #2
0
		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;
		}