C# 클래스 DatesGenerator.DateSequenceForm

상속: System.Windows.Forms.Form, IEditorEx
파일 보기 프로젝트 열기: fairmat/ModelingTools 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Frees up used resources.

비공개 메소드들

메소드 설명
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.

메소드 상세

Bind() 공개 메소드

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

BindInfo() 공개 메소드

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.
리턴 void

CheckInstance() 공개 메소드

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

DateSequenceForm() 공개 메소드

Initializes the form.
public DateSequenceForm ( ) : System
리턴 System

Dispose() 보호된 메소드

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