Пример #1
0
		public void SaveSettings()
		{
			Settings settings = new Settings();
			settings.UseViews = this.useViews;
			settings.DefaultView = this.defaultView;
			settings.ProfileNewDocuments = this.profileNewDocuments;
		}
Пример #2
0
		public void LoadSettings()
		{
			Settings settings = new Settings();
			this.useViews = settings.UseViews;
			this.defaultView = settings.DefaultView;
			this.profileNewDocuments = settings.ProfileNewDocuments;
		}
Пример #3
0
		public virtual bool IsConfigured()
		{
			Settings settings = new Settings();
			return settings.Sites.Count != 0;
		}
Пример #4
0
		private void LoadRepositories()
		{
			try
			{
				//Logger.LogMethod();

				this.repositories.Clear();

				Settings settings = new Settings();
				foreach (string site in settings.Sites)
				{
					AddServer(site);
				}
			}
			catch (Exception ex)
			{
				Logger.LogError(ex);
				throw;
			}

		}