C# Class Prizm.Main.Forms.MainChildForm.ChildEditableForm

Inheritance: ChildForm, IModifiable
Afficher le fichier Open project: AleksMorozova/prizm

Protected Properties

Свойство Type Description
headerNumberPart string

Méthodes publiques

Méthode Description
Is ( System.Guid id ) : bool
UpdateState ( ) : void

manual updating the state of child controls

UpdateTitle ( ) : void

Méthodes protégées

Méthode Description
OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void

On closing. Free controls references.

OnFormClosing ( FormClosingEventArgs e ) : void

Before closing.

OnTextChanged ( System e ) : void

If this is first-time Text change, remember original text

SetAlwaysEditable ( Control c ) : void

Derived class can set some it's controls as an exception to be not processed on switching edit mode. Overrides previous setting for this control

SetAlwaysReadOnly ( Control c ) : void

Derived class can set some it's controls as always read only, and they won't be editable in edit mode. Overrides previous setting for this control

SetConditional ( Control c, bool>.Func IsEditableMethod ) : void

Derived class can set some it's controls as conditional read/edit mode, depending on real mode Overrides previous setting for this control

Private Methods

Méthode Description
SetCaption ( ) : void

Set new caption according to current state of document

SetEditModeAllChildren ( Control control, bool editMode ) : void

Set read/edit mode for given control and all it's children (always read only will remain read only)

Method Details

Is() public méthode

public Is ( System.Guid id ) : bool
id System.Guid
Résultat bool

OnFormClosed() protected méthode

On closing. Free controls references.
protected OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void
e System.Windows.Forms.FormClosedEventArgs
Résultat void

OnFormClosing() protected méthode

Before closing.
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs used for decision whether to close form or not
Résultat void

OnTextChanged() protected méthode

If this is first-time Text change, remember original text
protected OnTextChanged ( System e ) : void
e System to pass to base class
Résultat void

SetAlwaysEditable() protected méthode

Derived class can set some it's controls as an exception to be not processed on switching edit mode. Overrides previous setting for this control
protected SetAlwaysEditable ( Control c ) : void
c System.Windows.Forms.Control reference to control
Résultat void

SetAlwaysReadOnly() protected méthode

Derived class can set some it's controls as always read only, and they won't be editable in edit mode. Overrides previous setting for this control
protected SetAlwaysReadOnly ( Control c ) : void
c System.Windows.Forms.Control reference to control
Résultat void

SetConditional() protected méthode

Derived class can set some it's controls as conditional read/edit mode, depending on real mode Overrides previous setting for this control
protected SetConditional ( Control c, bool>.Func IsEditableMethod ) : void
c System.Windows.Forms.Control reference to control
IsEditableMethod bool>.Func
Résultat void

UpdateState() public méthode

manual updating the state of child controls
public UpdateState ( ) : void
Résultat void

UpdateTitle() public méthode

public UpdateTitle ( ) : void
Résultat void

Property Details

headerNumberPart protected_oe property

protected string headerNumberPart
Résultat string