Example #1
0
        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;
                }
            }
        }
Example #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     CaseSorter.SortInOneLine(o => o.Case.CaseNumber);
 }