예제 #1
0
        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);
 }
예제 #3
0
 public PresetViewModel(Preset preset)
     : this(preset, false)
 {
 }