private void OnPropertyChanged(string info) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(info)); if (info == "SortByTypeType") { switch (SortByType) { case SFSortByType.CaseNumber: CaseSorter.Sort(o => o.Case.CaseNumber); break; //case SFSortByType.DateOpened: // CaseSorter.Sort(o => o.Case.CreatedDate); // break; //case SFSortByType.PersonOpened: // CaseSorter.Sort(o => o.Case.CreatedBy.Name); // break; default: break; } } }
private void Button_Click(object sender, RoutedEventArgs e) { CaseSorter.SortInOneLine(o => o.Case.CaseNumber); }