Method | Description | |
---|---|---|
InHeaderComboBoxController ( |
Initializes a new instance of InHeaderComboBoxController class with specified values.
|
Method | Description | |
---|---|---|
AddNewHeader ( ) : void |
Prompts a dialog box to select the new header. Once it is selected this method adds it to Message.HeadersCollection. Also this method creates a new Message for the header and puts it to the Operation.MessagesCollection.
|
|
CheckBox_CheckedChanged ( object sender, |
Performs the actions when the status of the checkbox control changes. If the check box is checked, this method will enable the combo box which displays the headers. Then it calls the AddNewHeader method to add a new header. If the check box is unchecked this method will perform the following tasks. 1. Removes the header messages from the Operation. 2. Clears the HeadersCollection of the current Message. 3. Removes the items from the combo box which displays the headers. 4. Disables the combo box. |
|
ComboBox_SelectedIndexChanged ( object sender, |
Performs the actions when the selected index of the header messages combo box changes. If the selected item is the last item of the list, the method will call the AddNewHeader method. Otherwise it shows the remove button to remove the selected header. |
|
RemoveLink_Click ( object sender, |
Performs the actions when the remove link label is clicked. This method removes the MessageHeader from the Message and Message from the Operation. |
|
SelectTheLatestHeader ( ) : void |
Sets the last item on the headers combo box as the default/selected item.
|
|
TextBox_FocusOver ( object sender, |
Performs the actions when textbox focus changes. When the content of the text box changes, this procedure updates the name of the MessageHeader accordingly. |
public InHeaderComboBoxController ( |
||
headerComboBox | Reference to the combo box which contains the headers. | |
headerCheckBox | Reference to the check box which indicates whether to use the message header(s) or not. | |
messageNameTextBox | Reference to the text box which contains the customized message name. | |
operation | Operation | Reference to the instance of |
message | Reference to the instance of |
|
header | Reference to the current |
|
headerElements |
/// Reference to an instance of |
|
removeButton | System.Windows.Forms.LinkLabel | Reference to the link label control used to remove headers. |
addedMessages | Reference to an instance of |
|
return | System |