C# Class MongoGUIView.CtlDocumentView

Mostra file Open project: magicdict/MongoCola Class Usage Examples

Public Properties

Property Type Description
ElementOp Action
_getDocument Func

Public Methods

Method Description
CtlDocumentView ( DataViewInfo dataViewInfo ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

lstData_MouseClick ( object sender, MouseEventArgs e ) : void

数据列表右键菜单

lstData_MouseDoubleClick ( object sender, MouseEventArgs e ) : void

双击列表

Private Methods

Method Description
AddElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

添加元素

CopyElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Copy Element

CutElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Cut Element

DelSelectRecordToolStripButton_Click ( object sender, EventArgs e ) : void

Delete Selected Documents

DropElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

删除元素

FindRootNode ( TreeNode node ) : TreeNode

获取树形的根

InitToolAndMenu ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ModifyElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

修改元素

NewDocumentStripButton_Click ( object sender, EventArgs e ) : void

Add New Document

OpenDocInEditorDocStripButton_Click ( object sender, EventArgs e ) : void

PasteElementToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Paste Element

SetCurrentDocument ( TreeNode currentNode, MongoCollection mongoCol ) : void

Set Current Document

ctlDocumentView_Load ( object sender, EventArgs e ) : void
lstData_SelectedIndexChanged ( object sender, EventArgs e ) : void

数据列表选中索引变换

trvData_AfterCollapse ( object sender, TreeViewEventArgs e ) : void

trvData_AfterExpand ( object sender, TreeViewEventArgs e ) : void

展开节点后的动作

trvData_AfterSelect_NotTop ( ) : bool

数据树形被选择后(非TOP)

trvData_AfterSelect_Top ( object sender, TreeViewEventArgs e ) : void

数据树形被选择后(TOP)

trvData_KeyDown ( object sender, KeyEventArgs e ) : void

键盘动作

trvData_MouseClick_NotTop ( MouseEventArgs e ) : void

鼠标动作(非顶层)

trvData_MouseClick_Top ( object sender, MouseEventArgs e ) : void

鼠标动作(顶层)

Method Details

CtlDocumentView() public method

public CtlDocumentView ( DataViewInfo dataViewInfo ) : System
dataViewInfo DataViewInfo
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

lstData_MouseClick() protected method

数据列表右键菜单
protected lstData_MouseClick ( object sender, MouseEventArgs e ) : void
sender object
e System.Windows.Forms.MouseEventArgs
return void

lstData_MouseDoubleClick() protected method

双击列表
protected lstData_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
sender object
e System.Windows.Forms.MouseEventArgs
return void

Property Details

ElementOp public_oe static_oe property

增加或者删除元素 参数frmElement
public static Action ElementOp
return Action

_getDocument public_oe static_oe property

public static Func _getDocument
return Func