C# 클래스 Thinktecture.Tools.Web.Services.WsdlWizard.WsdlWizardForm.OutHeaderComboBoxController

Represents a custom controller for dynamically created controls to hold header messages for output message.
파일 보기 프로젝트 열기: WSCF/WSCF

공개 메소드들

메소드 설명
OutHeaderComboBoxController ( ComboBox headerComboBox, CheckBox headerCheckBox, TextBox messageNameTextBox, Operation operation, Message message, MessageHeader header, SchemaElements headerElements, System.Windows.Forms.LinkLabel removeButton, MessagesCollection addedMessages ) : System

Initializes a new instance of OutHeaderComboBoxController class with specified values.

비공개 메소드들

메소드 설명
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, EventArgs e ) : void

Performs the actions when the status of the check box 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, EventArgs e ) : void

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, EventArgs e ) : void

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, EventArgs e ) : void

Performs the actions when text box focus changes.

When the content of the text box changes, this procedure adjusts the name of the header message accordingly.

메소드 상세

OutHeaderComboBoxController() 공개 메소드

Initializes a new instance of OutHeaderComboBoxController class with specified values.
public OutHeaderComboBoxController ( ComboBox headerComboBox, CheckBox headerCheckBox, TextBox messageNameTextBox, Operation operation, Message message, MessageHeader header, SchemaElements headerElements, System.Windows.Forms.LinkLabel removeButton, MessagesCollection addedMessages ) : System
headerComboBox System.Windows.Forms.ComboBox Reference to the combo box which contains the headers.
headerCheckBox System.Windows.Forms.CheckBox Reference to the check box which indicates whether to use the message header(s) or not.
messageNameTextBox System.Windows.Forms.TextBox Reference to the text box which contains the customized message name.
operation Operation Reference to the instance of class, belongs to.
message Thinktecture.Tools.Web.Services.ServiceDescription.Message Reference to the instance of class, belongs to.
header Thinktecture.Tools.Web.Services.ServiceDescription.MessageHeader Reference to the current of the message.
headerElements Thinktecture.Tools.Web.Services.ServiceDescription.SchemaElements Reference to an instance of class with schema elements for headers.
removeButton System.Windows.Forms.LinkLabel Reference to the link label control used to remove headers.
addedMessages Thinktecture.Tools.Web.Services.ServiceDescription.MessagesCollection Reference to an instance of class with objects added for the header.
리턴 System