private static void AddInteractionElement(XmlDocument xmlDoc, InteractionShadow shadow) { XmlElement stateElement = CreateElement(xmlDoc.DocumentElement, xmlStrings.Interaction); stateElement.SetAttribute(xmlStrings.StateId, shadow.GetStateId()); AddEnteringFrom(shadow, stateElement); AddPromptTypes(shadow.GetPromptTypes(), stateElement); AddCommandTransitions(shadow, shadow.GetCommandTransitions(), stateElement); AddConfirmationList(shadow.GetConfirmationPrompts(), stateElement); AddMaxHandling(shadow, shadow.GetMaxHandling(), stateElement); AddSpecialSettings(shadow.GetSpecialSettings(), stateElement); AddDeveloperNotes(shadow.GetDeveloperNotes(), stateElement); }
private void InteractionForm_Load(object sender, EventArgs e) { Table table; // State Name string stateId = shadow.GetStateId(); CommonForm.LoadStateIdTextBoxes(statePrefixTextBox, stateNumberTextBox, stateNameTextBox, stateId); // Initialize Prompts table = shadow.GetPromptTypes(); CommonForm.LoadPromptTypeDataGridView(promptsDataGridView, table); // Initialize Transitions table = shadow.GetCommandTransitions(); CommonForm.LoadCommandTransitionDataGridView(commandsDataGridView, table); // Initialize Confirmations table = shadow.GetConfirmationPrompts(); CommonForm.LoadConfirmationPromptGridView(confirmationDataGridView, table, commandsDataGridView); // Initialize MaxHandling table = shadow.GetMaxHandling(); CommonForm.LoadMaxHandlingGridView(maxHandlingDataGridView, table); // Special Settings table = shadow.GetSpecialSettings(); CommonForm.LoadSpecialSettingsTextBox(specialSettingsTextBox, table); // Developer Notes table = shadow.GetDeveloperNotes(); CommonForm.LoadDeveloperNotesTextBox(developerNotesTextBox, table); // Design Notes table = shadow.GetDesignNotes(); CommonForm.LoadDesignNotesTextBox(designNotesTextBox, table); statePrefixTextBox.Focus(); }