Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
 }
Пример #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);
 }