Пример #1
0
		/// <summary>
		/// Dispose of this group by disposing of it's storage implementation
		/// </summary>
		public void Dispose()
		{
			if ( storageImpl != null )
			{
				storageImpl.Dispose();
				storageImpl = null;
			}
		}
Пример #2
0
		/// <summary>
		/// Construct a settings group based on a storage implementation.
		/// </summary>
		/// <param name="name">Name of the group</param>
		/// <param name="storageImpl">Storage for the group settings</param>
		public SettingsGroup( string name, SettingsStorage storageImpl )
		{
			this.name = name;
			this.storageImpl = storageImpl;
		}
Пример #3
0
		/// <summary>
		/// Construct a settings group based on a parent group that contains it.
		/// </summary>
		/// <param name="name">Name of the group</param>
		/// <param name="parentSettings">Containing  group</param>
		public SettingsGroup( string name, SettingsGroup parentSettings )
		{
			this.name = name;
			this.parentSettings = parentSettings;
			this.storageImpl = parentSettings.Storage.MakeChildStorage( name );
		}
Пример #4
0
		/// <summary>
		/// Construct a SettingsStorage under a parent storage
		/// </summary>
		/// <param name="storageName">Name of the storage</param>
		/// <param name="parentStorage">The parent which contains the new storage</param>
		public SettingsStorage( string storageName, SettingsStorage parentStorage )
		{
			this.storageName = storageName;
			this.parentStorage = parentStorage;
		}
Пример #5
0
		public OptionSettings( SettingsStorage storage ) : base( NAME, storage ) { }
Пример #6
0
		public NUnitGuiSettings( SettingsStorage storage ) : base( NAME, storage ) { }
Пример #7
0
		public FormSettings( SettingsStorage storage ) : base( NAME, storage ) { }
Пример #8
0
 /// <summary>
 /// Construct a settings group based on a parent group that contains it.
 /// </summary>
 /// <param name="name">Name of the group</param>
 /// <param name="parentSettings">Containing  group</param>
 public SettingsGroup(string name, SettingsGroup parentSettings)
 {
     this.name           = name;
     this.parentSettings = parentSettings;
     this.storageImpl    = parentSettings.Storage.MakeChildStorage(name);
 }
Пример #9
0
 public NUnitGuiSettings(SettingsStorage storage) : base(NAME, storage)
 {
 }
Пример #10
0
 /// <summary>
 /// Construct a settings group based on a storage implementation.
 /// </summary>
 /// <param name="name">Name of the group</param>
 /// <param name="storageImpl">Storage for the group settings</param>
 public SettingsGroup(string name, SettingsStorage storageImpl)
 {
     this.name        = name;
     this.storageImpl = storageImpl;
 }
Пример #11
0
		public RecentProjectSettings( SettingsStorage storage ) 
			: base( NAME, storage ) { }
Пример #12
0
 public FormSettings(SettingsStorage storage) : base(NAME, storage)
 {
 }
Пример #13
0
 /// <summary>
 /// Construct a SettingsStorage under a parent storage
 /// </summary>
 /// <param name="storageName">Name of the storage</param>
 /// <param name="parentStorage">The parent which contains the new storage</param>
 public SettingsStorage(string storageName, SettingsStorage parentStorage)
 {
     this.storageName   = storageName;
     this.parentStorage = parentStorage;
 }
Пример #14
0
		public RecentFileSettings( string name, SettingsStorage storage ) : base( name, storage ) 
		{
			LoadFiles();
		}