public PredefinedColorViewModel(PredefinedColor color) : this()
 {
     TargetTemplate = color.TargetTemplate;
     SelectedColor  = color.Color;
     foreach (var curIdentifier in color.TargetIdentifiers)
     {
         TargetIdentifiers.Add(curIdentifier);
     }
 }
 private bool CanAddIdentifier(object param)
 {
     return(!string.IsNullOrWhiteSpace(NewIdentifier) &&
            !TargetIdentifiers.Contains(NewIdentifier, StringComparer.OrdinalIgnoreCase));
 }
 private void AddIdentifier(object param)
 {
     TargetIdentifiers.Add(NewIdentifier);
 }
 private void DeleteIdentifier(object param)
 {
     TargetIdentifiers.Remove(SelectedIdentifier);
 }