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

A tree control item where the embedded form is a View (specifically SIL.FieldWorks.Common.Framework.RootSite).
상속: Slice
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
AboutToDiscard ( ) : void

Somehow a slice (I think one that has never scrolled to become visible?) can get an OnLoad message for its view in the course of deleting it from the parent controls collection. This can be bad (at best it's a waste of time to do the Layout in the OnLoad, but it can be actively harmful if the object the view is displaying has been deleted). So suppress it.

BecomeRealInPlace ( ) : bool

Some 'unreal' slices can become 'real' (ready to actually display) without actually replacing themselves with a different object. Such slices override this method to do whatever is needed and then answer true. If a slice answers false to IsRealSlice, this is tried, and if it returns false, then BecomeReal is called.

HandleLayoutSizeChanged ( object sender, EventArgs ea ) : void

Install ( DataTree parent ) : void

ViewSlice ( ) : System

ViewSlice ( SimpleRootSite ctrlT ) : System

rs_SizeChanged ( object sender, EventArgs e ) : void

보호된 메소드들

메소드 설명
DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int

The height that the slice would ideally be to accommodate the rootsite.

Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

InternalInitialize ( ) : void
OnSizeChanged ( EventArgs e ) : void
SetWidthForDataTreeLayout ( int width ) : void

비공개 메소드들

메소드 설명
SetHeightFromRootBox ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : void
ViewSlice_Enter ( object sender, System e ) : void

메소드 상세

AboutToDiscard() 공개 메소드

Somehow a slice (I think one that has never scrolled to become visible?) can get an OnLoad message for its view in the course of deleting it from the parent controls collection. This can be bad (at best it's a waste of time to do the Layout in the OnLoad, but it can be actively harmful if the object the view is displaying has been deleted). So suppress it.
public AboutToDiscard ( ) : void
리턴 void

BecomeRealInPlace() 공개 메소드

Some 'unreal' slices can become 'real' (ready to actually display) without actually replacing themselves with a different object. Such slices override this method to do whatever is needed and then answer true. If a slice answers false to IsRealSlice, this is tried, and if it returns false, then BecomeReal is called.
public BecomeRealInPlace ( ) : bool
리턴 bool

DesiredHeight() 보호된 메소드

The height that the slice would ideally be to accommodate the rootsite.
protected DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
rs SIL.FieldWorks.Common.RootSites.RootSite
리턴 int

Dispose() 보호된 메소드

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

HandleLayoutSizeChanged() 공개 메소드

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

Install() 공개 메소드

public Install ( DataTree parent ) : void
parent DataTree
리턴 void

InternalInitialize() 보호된 메소드

protected InternalInitialize ( ) : void
리턴 void

OnSizeChanged() 보호된 메소드

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

SetWidthForDataTreeLayout() 보호된 메소드

protected SetWidthForDataTreeLayout ( int width ) : void
width int
리턴 void

ViewSlice() 공개 메소드

public ViewSlice ( ) : System
리턴 System

ViewSlice() 공개 메소드

public ViewSlice ( SimpleRootSite ctrlT ) : System
ctrlT SIL.FieldWorks.Common.RootSites.SimpleRootSite
리턴 System

rs_SizeChanged() 공개 메소드

public rs_SizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void