C# 클래스 MongoGUICtl.ClientTree.UiHelper

파일 보기 프로젝트 열기: magicdict/MongoCola 1 사용 예제들

공개 메소드들

메소드 설명
AddBsonArrayToTreeNode ( string arrayName, TreeNode newItem, BsonArray item ) : void

将BsonArray放入树形控件

AddBsonDocToTreeNode ( TreeNode treeNode, BsonDocument doc ) : void

将数据放入TreeNode里进行展示

FillDataBaseInfoToTreeNode ( string strDbName, string mongoSvrKey, MongoClient client = null ) : TreeNode

将数据库放入Node

FillDataToTreeView ( string collectionName, CtlTreeViewColumns trvData, BsonDocument dataList ) : void

将数据放入TreeView里进行展示

FillDataToTreeView ( string collectionName, CtlTreeViewColumns trvData, List dataList, int mSkip ) : void

将数据放入TreeView里进行展示

GetConnectionNodes ( ) : List

获取将Mongodb的服务器在树形控件中展示的TreeNodes

비공개 메소드들

메소드 설명
AuthenticationExceptionHandler ( MongoAuthenticationException ex, List trvMongoDb, TreeNode connectionNode, string mongoConnKey ) : void
ExceptionHandle ( Exception ex, List trvMongoDb, TreeNode connectionNode, string mongoConnKey ) : void
GetInstanceNode ( string mongoConnKey, MongoConnectionConfig &config, MongoClient mongoClient ) : TreeNode

获取实例节点 这里将形成左侧的树型目录

MongoCommandExceptionHandle ( MongoCommandException ex, List trvMongoDb, TreeNode connectionNode, string mongoConnKey ) : string
MongoConnectionExceptionHandle ( MongoConnectionException ex, List trvMongoDb, TreeNode connectionNode, string mongoConnKey ) : string

메소드 상세

AddBsonArrayToTreeNode() 공개 정적인 메소드

将BsonArray放入树形控件
public static AddBsonArrayToTreeNode ( string arrayName, TreeNode newItem, BsonArray item ) : void
arrayName string
newItem System.Windows.Forms.TreeNode
item BsonArray
리턴 void

AddBsonDocToTreeNode() 공개 정적인 메소드

将数据放入TreeNode里进行展示
public static AddBsonDocToTreeNode ( TreeNode treeNode, BsonDocument doc ) : void
treeNode System.Windows.Forms.TreeNode
doc BsonDocument
리턴 void

FillDataBaseInfoToTreeNode() 공개 정적인 메소드

将数据库放入Node
public static FillDataBaseInfoToTreeNode ( string strDbName, string mongoSvrKey, MongoClient client = null ) : TreeNode
strDbName string
mongoSvrKey string
client MongoDB.Driver.MongoClient
리턴 System.Windows.Forms.TreeNode

FillDataToTreeView() 공개 정적인 메소드

将数据放入TreeView里进行展示
public static FillDataToTreeView ( string collectionName, CtlTreeViewColumns trvData, BsonDocument dataList ) : void
collectionName string
trvData CtlTreeViewColumns ///
dataList BsonDocument
리턴 void

FillDataToTreeView() 공개 정적인 메소드

将数据放入TreeView里进行展示
public static FillDataToTreeView ( string collectionName, CtlTreeViewColumns trvData, List dataList, int mSkip ) : void
collectionName string
trvData CtlTreeViewColumns
dataList List
mSkip int
리턴 void

GetConnectionNodes() 공개 정적인 메소드

获取将Mongodb的服务器在树形控件中展示的TreeNodes
public static GetConnectionNodes ( ) : List
리턴 List