public void ResetData()
 {
     CurrentVenueViewModel = new VenueViewModel();
     CurrentArtistViewModel = new ArtistViewModel();
     DateTimeViewModel = DateTime.Now;
     IsNew = true;
 }
 public void InitializePreset(VenueViewModel venue, ArtistViewModel artist, DateTimeViewModel dateTime)
 {
     CurrentVenueViewModel = venue;
     CurrentArtistViewModel = artist;
     DateTimeViewModel = dateTime;
     IsNew = false;
 }
 public ArtistDialogViewModel()
 {
     CurrentArtist = new ArtistViewModel();
     SaveCommand = new RelayCommand(() =>
     {
         Messenger.Default.Send(new HideDialogMessage(Locator.ArtistDialogViewModel));
         Locator.ArtistOverviewViewModel.SaveCommand.Execute(null);
     });
     CancelCommand = new RelayCommand(() =>
     {
         Messenger.Default.Send(new HideDialogMessage(Locator.ArtistDialogViewModel));
     });
 }
 public void UpdateArtists()
 {
     Artists.Clear();
     Task.Run(() => {
         List<Artist> artists = artistService.GetAllArtists();
         foreach (var artist in artists) {
             ArtistViewModel vm = new ArtistViewModel(artistService, categoryService, countryService, artist);
             PlatformService.Instance.RunByUiThread(() => {
                 Artists.Add(vm);
             });
         }
     });
 }