C# Class SIL.FieldWorks.TE.PromptSelectionRestorer

This class is responsible to save selection information before some operation (currently typically a KeyPress) which might result in an ordinary string property being replaced by a prompt. The replacement will typically destroy the selection. This code saves the information needed to restore a selection in the prompt after the operation. Typical usage: using new PromptSelectionRestorer(rootbox) base.OnKeyPress();
Inheritance: IDisposable
Mostra file Open project: sillsdev/FieldWorks

Public Methods

Method Description
Dispose ( ) : void

We consciously don't do the usual destructor stuff. There's nothing useful to do unless properly disposed.

PromptSelectionRestorer ( IVwRootBox rootbox ) : System

Make one.

Method Details

Dispose() public method

We consciously don't do the usual destructor stuff. There's nothing useful to do unless properly disposed.
public Dispose ( ) : void
return void

PromptSelectionRestorer() public method

Make one.
public PromptSelectionRestorer ( IVwRootBox rootbox ) : System
rootbox IVwRootBox
return System