C# 클래스 SIL.FieldWorks.Common.Framework.DetailControls.SliceTreeNode

상속: System.Windows.Forms.UserControl, IFWDisposable
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_inMenuButton bool

Private Properties

프로퍼티 타입 설명
HandlePaint void
InitializeComponent void
OkToMove bool
SliceTreeNode_KeyDown void
SliceTreeNode_KeyPress void
TestDropEffects ObjectDragInfo

공개 메소드들

메소드 설명
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

HandleSizeChanged ( object sender, EventArgs ea ) : void

SliceTreeNode ( Slice slice ) : System

ToggleExpansion ( int iSlice ) : void

Toggle the expansion state of the slice at iSlice. May presume it is already in existence. (If it is in the collapsedEmpty or fixed states, do nothing.)

ToggleExpansionAndScroll ( int iSlice ) : void

Toggle the expansion state of the slice at iSlice. May presume it is already in existence. Todo: attempt to scroll so new children are visible

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDoubleClick ( EventArgs e ) : void

Double-click causes expand/contract wherever it is.

OnDragDrop ( DragEventArgs drgevent ) : void
OnDragEnter ( DragEventArgs drgevent ) : void
OnMouseDown ( MouseEventArgs meArgs ) : void

Preliminary version of mouse down handles expansion and contraction. Todo: - Scroll appropriately to show as much as possible of what was expanded. - drag and drop effects. - double-click on label also toggles expansion.

ProcessDialogChar ( char charCode ) : bool

Activate menu only if Alt key is being pressed. See FWNX-1353.

TODO: Getting here without the Alt key may be considered a Mono bug.

비공개 메소드들

메소드 설명
HandlePaint ( object sender, PaintEventArgs pea ) : void
InitializeComponent ( ) : void

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

OkToMove ( int hvoDstOwner, int flidDst, int ihvoDstStart, ObjectDragInfo odi ) : bool
SliceTreeNode_KeyDown ( object sender, System e ) : void
SliceTreeNode_KeyPress ( object sender, System e ) : void
TestDropEffects ( DragEventArgs drgevent, int &hvoDstOwner, int &flidDst, int &ihvoDstStart ) : ObjectDragInfo

Test whether we can drop the information indicated by the drgevent onto this. Currently this is possible if 1. The drag event's data is an ObjectDragInfo 2. It is valid for those objects to be moved to a position just after the object of which the destination slice is a part, in the lowest level sequence of which it is a part. drgevent.Effect is set to Move or None to indicate the result. If successful, returns an ObjectDragInfo and the place to put the new objects. (Note: the ihvoDstStart returned is meaningless if the property is a collection.) Move is valid under the following conditions: 1. Must not violate signature. Signature is checked if destination property is different from source. 2. Must not create circularity of ownership. This is checked if destination object is different from source. 3. Must result in actual movement. This is checked if destination and source object and flid are the same. This case always fails if the property is a collection, also if it is a sequence and nothing would change.

메소드 상세

CheckDisposed() 공개 메소드

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

HandleSizeChanged() 공개 메소드

public HandleSizeChanged ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
리턴 void

OnDoubleClick() 보호된 메소드

Double-click causes expand/contract wherever it is.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnDragDrop() 보호된 메소드

protected OnDragDrop ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
리턴 void

OnDragEnter() 보호된 메소드

protected OnDragEnter ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
리턴 void

OnMouseDown() 보호된 메소드

Preliminary version of mouse down handles expansion and contraction. Todo: - Scroll appropriately to show as much as possible of what was expanded. - drag and drop effects. - double-click on label also toggles expansion.
protected OnMouseDown ( MouseEventArgs meArgs ) : void
meArgs MouseEventArgs
리턴 void

ProcessDialogChar() 보호된 메소드

Activate menu only if Alt key is being pressed. See FWNX-1353.
TODO: Getting here without the Alt key may be considered a Mono bug.
protected ProcessDialogChar ( char charCode ) : bool
charCode char
리턴 bool

SliceTreeNode() 공개 메소드

public SliceTreeNode ( Slice slice ) : System
slice Slice
리턴 System

ToggleExpansion() 공개 메소드

Toggle the expansion state of the slice at iSlice. May presume it is already in existence. (If it is in the collapsedEmpty or fixed states, do nothing.)
public ToggleExpansion ( int iSlice ) : void
iSlice int
리턴 void

ToggleExpansionAndScroll() 공개 메소드

Toggle the expansion state of the slice at iSlice. May presume it is already in existence. Todo: attempt to scroll so new children are visible
public ToggleExpansionAndScroll ( int iSlice ) : void
iSlice int
리턴 void

프로퍼티 상세

m_inMenuButton 보호되어 있는 프로퍼티

protected bool m_inMenuButton
리턴 bool