C# Class MongoGUIView.ViewHelper

Afficher le fichier Open project: magicdict/MongoCola Class Usage Examples

Méthodes publiques

Méthode Description
ConvertFromString ( string strData ) : BsonValue

字符转Bsonvalue

ConvertToString ( BsonValue bsonValue ) : string

BsonValue转展示用字符

FillDataToControl ( List dataList, List controls, DataViewInfo currentDataViewInfo ) : void

展示数据

FillDataToListView ( string collectionName, ListView lstData, List dataList ) : void

将数据放入ListView中进行展示

FillJsonDataToTextBox ( TextBox txtData, List dataList, int skipCnt ) : void

PageChanged ( PageChangeOpr pageChangeMode, DataViewInfo &mDataViewInfo, List dataShower ) : void

换页操作

Private Methods

Méthode Description
SetDataListToListView ( List dataList, ListView lstData, string collectionName ) : void

普通数据的加载

SetGridFileToListView ( List dataList, ListView lstData ) : void

GFS系统

SetUserListToListView ( List dataList, ListView lstData ) : void

用户列表

Method Details

ConvertFromString() public static méthode

字符转Bsonvalue
public static ConvertFromString ( string strData ) : BsonValue
strData string
Résultat BsonValue

ConvertToString() public static méthode

BsonValue转展示用字符
public static ConvertToString ( BsonValue bsonValue ) : string
bsonValue BsonValue
Résultat string

FillDataToControl() public static méthode

展示数据
public static FillDataToControl ( List dataList, List controls, DataViewInfo currentDataViewInfo ) : void
dataList List
controls List
currentDataViewInfo MongoUtility.Aggregation.DataViewInfo
Résultat void

FillDataToListView() public static méthode

将数据放入ListView中进行展示
public static FillDataToListView ( string collectionName, ListView lstData, List dataList ) : void
collectionName string
lstData System.Windows.Forms.ListView
dataList List
Résultat void

FillJsonDataToTextBox() public static méthode

public static FillJsonDataToTextBox ( TextBox txtData, List dataList, int skipCnt ) : void
txtData System.Windows.Forms.TextBox
dataList List
skipCnt int
Résultat void

PageChanged() public static méthode

换页操作
public static PageChanged ( PageChangeOpr pageChangeMode, DataViewInfo &mDataViewInfo, List dataShower ) : void
pageChangeMode PageChangeOpr
mDataViewInfo MongoUtility.Aggregation.DataViewInfo
dataShower List
Résultat void