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

Inheritance: ChildForm, IModifiable
ファイルを表示 Open project: AleksMorozova/prizm

Protected Properties

Property Type Description
headerNumberPart string

Public Methods

Method Description
Is ( System.Guid id ) : bool
UpdateState ( ) : void

manual updating the state of child controls

UpdateTitle ( ) : void

Protected Methods

Method 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

Method 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 method

public Is ( System.Guid id ) : bool
id System.Guid
return bool

OnFormClosed() protected method

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

OnFormClosing() protected method

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

OnTextChanged() protected method

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

SetAlwaysEditable() protected method

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

SetAlwaysReadOnly() protected method

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

SetConditional() protected method

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

UpdateState() public method

manual updating the state of child controls
public UpdateState ( ) : void
return void

UpdateTitle() public method

public UpdateTitle ( ) : void
return void

Property Details

headerNumberPart protected_oe property

protected string headerNumberPart
return string