C# Class MongoGUIView.ViewHelper

Mostrar archivo Open project: magicdict/MongoCola Class Usage Examples

Public Methods

Method 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

Method 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 method

字符转Bsonvalue
public static ConvertFromString ( string strData ) : BsonValue
strData string
return BsonValue

ConvertToString() public static method

BsonValue转展示用字符
public static ConvertToString ( BsonValue bsonValue ) : string
bsonValue BsonValue
return string

FillDataToControl() public static method

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

FillDataToListView() public static method

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

FillJsonDataToTextBox() public static method

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

PageChanged() public static method

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