C# Class SIL.FieldWorks.Common.Framework.DetailControls.StringSlice.StringSliceView

Inheritance: SIL.FieldWorks.Common.RootSites.RootSiteControl, INotifyControlInCurrentSlice
Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
MakeRoot ( ) : void
SelectAt ( int ich ) : void

Make a selection at the specified character offset.

StringSliceView ( int hvo, int flid, int ws ) : System

Protected Methods

Method Description
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.

HandleSelectionChange ( IVwRootBox prootb, IVwSelection vwselNew ) : void

Try to keep the selection from including any of the characters in a writing system label. Also update the writing system label if needed.

OnKeyPress ( KeyPressEventArgs e ) : void

If the view's root object is valid, then call the base method. Otherwise do nothing. (See LT-8656 and LT-9119.)

OnValidating ( System e ) : void

This method seems to get called when we are switching to another tool (or area, or slice) AND when the program is shutting down. This makes it a good point to check constraints, since in some of these cases, SliceIsCurrent may not get set false.

Private Methods

Method Description
DoValidation ( ) : void

Method Details

Dispose() protected method

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
return void

HandleSelectionChange() protected method

Try to keep the selection from including any of the characters in a writing system label. Also update the writing system label if needed.
protected HandleSelectionChange ( IVwRootBox prootb, IVwSelection vwselNew ) : void
prootb IVwRootBox
vwselNew IVwSelection
return void

MakeRoot() public method

public MakeRoot ( ) : void
return void

OnKeyPress() protected method

If the view's root object is valid, then call the base method. Otherwise do nothing. (See LT-8656 and LT-9119.)
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void

OnValidating() protected method

This method seems to get called when we are switching to another tool (or area, or slice) AND when the program is shutting down. This makes it a good point to check constraints, since in some of these cases, SliceIsCurrent may not get set false.
protected OnValidating ( System e ) : void
e System
return void

SelectAt() public method

Make a selection at the specified character offset.
public SelectAt ( int ich ) : void
ich int
return void

StringSliceView() public method

public StringSliceView ( int hvo, int flid, int ws ) : System
hvo int
flid int
ws int
return System