public PresetViewModel(Preset preset, bool isNew) { this.preset = (IPreset)preset.Clone(); this.original = preset; this.TagTypes = new ObservableCollection<TagTypes>(this.original.TagTypes); this.isNew = isNew; }
private void AddNewFormat() { var formatName = GenerateUniqueFormatName(this.Formats, "New Preset"); var format = new Preset(formatName); this.originalFormats.Add(format); var viewModel = new PresetViewModel(format, true); this.Formats.Add(viewModel); }
public PresetViewModel(Preset preset) : this(preset, false) { }