示例#1
0
        public ViewStatus Clone()
        {
            ViewStatus cloned = new ViewStatus()
            {
                GroupedRowViewModels = GroupedRowViewModels != null ? new List <RowViewModel>(GroupedRowViewModels) : null,
                GroupedRows          = GroupedRows != null ? new List <GroupedRows>(GroupedRows) : null,
                ActivatedChart       = ActivatedChart
            };

            foreach (ColumnViewModel cvm in selectedColumnViewModels)
            {
                cloned.SelectedColumnViewModels.Add(cvm);
            }
            cloned.Refresh();
            return(cloned);
        }
示例#2
0
 public GroupedRowComparer(SheetViewModel sheetViewModel, ViewStatus viewStatus)
 {
     SheetViewModel = sheetViewModel;
     ViewStatus     = viewStatus;
 }