Example #1
0
 /// <summary>
 /// Removes a <see cref="SurfaceSetting"/> from this surface.
 /// </summary>
 /// <param name="setting">The setting.</param>
 public void RemoveSetting(SurfaceSetting setting)
 {
     if (this.settingsSet.Remove(setting) && setting.NeedsUnsetting)
     {
         this.settingsUnSet.Remove(setting);
     }
 }
Example #2
0
 /// <summary>
 /// Adds a <see cref="SurfaceSetting"/> to this surface.
 /// </summary>
 /// <param name="setting">The setting.</param>
 public void AddSetting(SurfaceSetting setting)
 {
     this.settingsSet.Add(setting);
     if (setting.NeedsUnsetting)
     {
         this.settingsUnSet.Add(setting);
     }
 }
Example #3
0
 /// <summary>
 /// Removes a <see cref="SurfaceSetting"/> from this surface.
 /// </summary>
 /// <param name="setting">The setting.</param>
 public void RemoveSetting(SurfaceSetting setting)
 {
     if (this.settingsSet.Remove(setting) && setting.NeedsUnsetting)
         this.settingsUnSet.Remove(setting);
 }
Example #4
0
 /// <summary>
 /// Adds a <see cref="SurfaceSetting"/> to this surface.
 /// </summary>
 /// <param name="setting">The setting.</param>
 public void AddSetting(SurfaceSetting setting)
 {
     this.settingsSet.Add(setting);
     if (setting.NeedsUnsetting)
         this.settingsUnSet.Add(setting);
 }