private void SortCheckBox_OnChecked(object sender, RoutedEventArgs e) { var checkBox = (CheckBox)sender; var tag = checkBox.Tag.ToString(); SculpturesHandler.SortCollection(tag); }
private void MaterialFilterButton_OnClick(object sender, RoutedEventArgs e) { var checkBox = (CheckBox)sender; var tag = checkBox.Tag.ToString(); SculpturesHandler.FilterCollectionByMaterial(tag); }
/// <summary> /// This method starts the Progress Ring when the sculptures are requested from the Database. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void ButtonBase_OnClick(object sender, RoutedEventArgs e) { // Delegate method to call the reset. ProgressRing.IsActive = true; SculptureListView.Opacity = 0.3; await SculpturesHandler.ResetCollectionAsync(); ProgressRing.IsActive = false; SculptureListView.Opacity = 1; }