コード例 #1
0
ファイル: MetadataViewModel.cs プロジェクト: e-/FlexTable
 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);
 }
コード例 #2
0
        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
            });
        }