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

Inheritance: SIL.FieldWorks.Common.RootSites.RootSiteControl, INotifyControlInCurrentSlice
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
MakeRoot ( ) : void
SelectAt ( int ich ) : void

Make a selection at the specified character offset.

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

Méthodes protégées

Méthode 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

Méthode Description
DoValidation ( ) : void

Method Details

Dispose() protected méthode

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
Résultat void

HandleSelectionChange() protected méthode

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
Résultat void

MakeRoot() public méthode

public MakeRoot ( ) : void
Résultat void

OnKeyPress() protected méthode

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
Résultat void

OnValidating() protected méthode

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
Résultat void

SelectAt() public méthode

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

StringSliceView() public méthode

public StringSliceView ( int hvo, int flid, int ws ) : System
hvo int
flid int
ws int
Résultat System