public void Create() { string uri = FolderName + "\\" + FileName; appModel_.AddRecent(FolderName + "\\" + FileName); appModel_.SaveConfig(); var scope = appModel_.CreateScope(uri); foreach (var colName in ColumnList) { scope.CreateOrUpdateColumn(new ColumnInfo { Name = colName }); } foreach (var rowName in RowList) { scope.CreateOrUpdateRow(new RowInfo { Name = rowName }); } this.Close(); shell_.ShowView <BoardView>( viewRequest: new BoardViewRequest { Scope = scope }, options: new UiShowOptions { Title = FileName }); }
private void AddRecent(string uri) { appModel.AddRecent(uri); appModel.SaveConfig(); BaseList.Remove(uri); BaseList.Insert(0, uri); if (BaseList.Count > 3) { BaseList.RemoveAt(3); } }