public void Add(int trackId)
 {
     _addTrackProperty = new AddPropertyViewModel(trackId, AddEditPropertyType.Track);
     if (_addTrackProperty.Properties.Count == 0)
     {
         ShowMessageBox("No more available properties, please edit the existing ones", "Cannot add property", MessageBoxOptions.Ok);
         _addTrackProperty.TryClose();
     }
     else
     {
         _addTrackProperty.Deactivated += _addTrackProperty_Deactivated;
         ShowDialog(_addTrackProperty);
     }
 }
Exemple #2
0
 public void Add()
 {
     _addCriteria = new AddPropertyViewModel(_playList.Id, AddEditPropertyType.SearchCriteria);
     if (_addCriteria.Properties.Count == 0)
     {
         ShowMessageBox("No more available criteria, please edit the existing ones", "Cannot add criteria", MessageBoxOptions.Ok);
         _addCriteria.TryClose();
     }
     else
     {
         _addCriteria.Deactivated += _addCriteria_Deactivated;
         ShowDialog(_addCriteria);
     }
 }