コード例 #1
0
 public async void Save(string identifier, GridSettings toSave)
 {
     var obs = BlobCache.LocalMachine.InsertObject(identifier, toSave);
     await obs;
 }
コード例 #2
0
        private void SaveSettings()
        {
            if (DataGrid == null) return;
            var settings = new GridSettings();
            foreach (var col in DataGrid.Columns)
            {
                var columnSettings = CreateColumnSettings(col);
                settings.ColumnSettings.Add(columnSettings);
                if (col.SortDirection == null) continue;

                settings.ColumnSort = new ColumnSort
                {
                    Direction = col.SortDirection.Value,
                    Index = col.DisplayIndex
                };
            }
            SettingsRepository.Save(SerializationId, settings);
        }
コード例 #3
0
 public async void Save(string identifier, GridSettings toSave)
 {
     var   obs = BlobCache.LocalMachine.InsertObject(identifier, toSave);
     await obs;
 }