public void Initialize() { Model.Sheet sheet = mainPageViewModel.Sheet; SheetName = sheet.Name; ColumnCount = sheet.Columns.Count; RowCount = sheet.Rows.Count; CategoricalColumnCount = mainPageViewModel.SheetViewModel.ColumnViewModels.Count(c => c.Type == Model.ColumnType.Categorical); NumericalColumnCount = mainPageViewModel.SheetViewModel.ColumnViewModels.Count(c => c.Type == Model.ColumnType.Numerical); }
private void AddSheetNotification(Model.Sheet sheet) { var receiver = Core.UserManager.UserGet(sheet.Controler); var sender = Core.UserManager.UserGet(sheet.Name); AddNotification(new Notification { InfoID = sheet.ID, InfoType = InfoType.Sheet, ReceiverID = receiver.ID, SenderID = sender.ID }); }