C# Class DatesGenerator.DateSequenceForm

Inheritance: System.Windows.Forms.Form, IEditorEx
Mostra file Open project: fairmat/ModelingTools Class Usage Examples

Public Methods

Method Description
Bind ( IEditable editedObject ) : void

Binds the vector to edit/create to this form.

BindInfo ( object info ) : void

Binds other information. to this form (like the project in which the vector is defined).

CheckInstance ( object instance ) : bool

Checks if the given instance can be edited using this form.

DateSequenceForm ( ) : System

Initializes the form.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Frees up used resources.

Private Methods

Method Description
FinalizeInitialization ( ) : void

Finalizes the initialization of the form.

HandleAutomaticPreview ( ) : void

Handles the automatic preview by ignoring all errors.

InitializeComponent ( ) : void

This method is required to support the designer window. Don't modify the method content with the code editor.

InitializeDatesPreview ( ) : void

Initializes the edited object in order to show its preview.

InitializeDatesPreviewThreadWorker ( string startDate, string endDate, string frequency, string skipPeriods, bool followFrequency, bool generateSequenceFromStartDate ) : void
InitializeHandlers ( ) : void

Initializes the handlers of the form.

InitializeModelParameter ( ) : void

Based on the values of the form initializes the array of dates.

InitializeUiEmptyPreview ( ) : void
InitializeUiPreview ( ModelParameterDateSequence preview, System.DateTime minDate, System.DateTime maxDate, int elements ) : void
RestoreValues ( ModelParameterArray parameter, object>.IDictionary dictionary ) : void

Restores the values of the parameter.

StoreValues ( ModelParameterArray parameter ) : object>.IDictionary

Saves the values of the parameter.

Validation ( bool preview ) : bool

Sets and validates the values specified in the form.

buttonCancel_Click ( object sender, EventArgs e ) : void

Closes the form.

buttonOk_Click ( object sender, EventArgs e ) : void

Tries to validate the data and if the validation is successful initializes the ModelParameter object and closes the form.

buttonUpdate_Click ( object sender, EventArgs e ) : void

Calculates and shows the dates to be generated.

checkBoxExclude_CheckedChanged ( object sender, EventArgs e ) : void

Automatically updates the dates to be shown each time there is change in the checkBoxExcludeStartDate control.

comboBoxDatesGeneration_SelectedIndexChanged ( object sender, EventArgs e ) : void

Automatically updates the dates to be shown each time there is change in the comboBoxDatesGeneration control.

comboBoxFrequency_SelectedIndexChanged ( object sender, EventArgs e ) : void

Automatically updates the dates to be shown each time there is change in the comboBoxFrequency control.

expressionEndDate_TextChanged ( object sender, EventArgs e ) : void

Automatically updates the dates to be shown each time there is change in the expressionEndDate control.

expressionStartDate_TextChanged ( object sender, EventArgs e ) : void

Automatically updates the dates to be shown each time there is change in the expressionStartDate control.

Method Details

Bind() public method

Binds the vector to edit/create to this form.
public Bind ( IEditable editedObject ) : void
editedObject IEditable The sequence of dates to edit/create.
return void

BindInfo() public method

Binds other information. to this form (like the project in which the vector is defined).
public BindInfo ( object info ) : void
info object The other information to bind to this form.
return void

CheckInstance() public method

Checks if the given instance can be edited using this form.
public CheckInstance ( object instance ) : bool
instance object The object to check.
return bool

DateSequenceForm() public method

Initializes the form.
public DateSequenceForm ( ) : System
return System

Dispose() protected method

Frees up used resources.
protected Dispose ( bool disposing ) : void
disposing bool /// True if the managed resources must be freed up, false otherwise. ///
return void