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); }
public GroupedRowComparer(SheetViewModel sheetViewModel, ViewStatus viewStatus) { SheetViewModel = sheetViewModel; ViewStatus = viewStatus; }