/// <summary> /// Sorts property ObservableCollection<FaseCyclusViewModel> Fasen. /// For this to not disrupt the model data, we temporarily disconnect method Fasen_CollectionChanged /// from the CollectionChanged event. /// </summary> public void SortFasen() { if (!IsSortingFasen) { IsSortingFasen = true; Fasen.BubbleSort(); FasenTabVM.SortMaxGroenSetsFasen(); IsSortingFasen = false; } }
public void SetAllSelectedElementsValue(object o, string propName) { if (!IsSetting) { switch (SelectedTab.DisplayName) { case "Fasen": IsSetting = true; FasenTabVM.SetAllSelectedFasenValue(o as FaseCyclusViewModel, propName); break; case "Detectoren": IsSetting = true; DetectorenTabVM.SetAllSelectedDetectorenValue(o as DetectorViewModel, propName); break; } IsSetting = false; } }