private void AddSlotToFavourites(object sender, RoutedEventArgs e) { var slot = (e.OriginalSource as FrameworkElement).DataContext; FavouritesDataSource.AddSlotAsync(slot as Slot); }
private void FavoriteAppBarButton_Click(object sender, RoutedEventArgs e) { FavouritesDataSource.AddSlotAsync((Slot)this.DefaultViewModel["Slot"]); }