/// <summary> /// Removes the preset of the given name from the library /// </summary> /// <param name="name">Name of the preset to delete</param> public void DeletePreset(Preset preset) { this._presets.Remove(preset); RealChuteSettings.SaveSettings(); }
/// <summary> /// Removes the preset of the given name from the library /// </summary> /// <param name="preset">Name of the preset to delete</param> public void DeletePreset(Preset preset) { this.Presets.Remove(preset.Name); RefreshData(); RealChuteSettings.SaveSettings(); }
/// <summary> /// Adds the given preset to the library /// </summary> /// <param name="preset">Preset to add</param> public void AddPreset(Preset preset) { this._presets.Add(preset); RealChuteSettings.SaveSettings(); }
/// <summary> /// Adds the given preset to the library /// </summary> /// <param name="preset">Preset to add</param> public void AddPreset(Preset preset) { this.Presets.Add(preset.Name, preset); RefreshData(); RealChuteSettings.SaveSettings(); }