C# Класс SIL.FieldWorks.Common.Framework.DetailControls.StringSlice.StringSliceView

Наследование: SIL.FieldWorks.Common.RootSites.RootSiteControl, INotifyControlInCurrentSlice
Показать файл Открыть проект

Открытые методы

Метод Описание
MakeRoot ( ) : void
SelectAt ( int ich ) : void

Make a selection at the specified character offset.

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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
DoValidation ( ) : void

Описание методов

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

HandleSelectionChange() защищенный Метод

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
Результат void

MakeRoot() публичный Метод

public MakeRoot ( ) : void
Результат void

OnKeyPress() защищенный Метод

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
Результат void

OnValidating() защищенный Метод

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
Результат void

SelectAt() публичный Метод

Make a selection at the specified character offset.
public SelectAt ( int ich ) : void
ich int
Результат void

StringSliceView() публичный Метод

public StringSliceView ( int hvo, int flid, int ws ) : System
hvo int
flid int
ws int
Результат System