public void resetComponent() { this.ActiveCheckbox.IsChecked = true; this.OnePossibleChoiceCheckbox.IsChecked = false; this.EditMessageTextBox.Clear(); this.HelpMessageTextBox.Clear(); this.LoopConditionsPanel.LoopUserTemplate = null; this.LoopConditionsPanel.Instruction = null; this.LoopConditionsPanel.conditions = null; }
public void Fill() { if (this.LoopUserTemplate == null) { this.LoopUserTemplate = new LoopUserDialogTemplate(); } this.LoopUserTemplate.active = this.ActiveCheckbox.IsChecked.Value; this.LoopUserTemplate.onePossibleChoice = this.OnePossibleChoiceCheckbox.IsChecked.Value; this.LoopUserTemplate.message = this.EditMessageTextBox.Text; this.LoopUserTemplate.help = this.HelpMessageTextBox.Text; this.LoopConditionsPanel.LoopUserTemplate = this.LoopUserTemplate; this.LoopConditionsPanel.FillLoopCondition(); this.LoopConditionsPanel.conditions = this.LoopUserTemplate.conditions; trow = false; }
public void Display() { if (this.LoopUserTemplate != null) { this.ActiveCheckbox.IsChecked = this.LoopUserTemplate.active; this.OnePossibleChoiceCheckbox.IsChecked = this.LoopUserTemplate.onePossibleChoice; this.EditMessageTextBox.Text = this.LoopUserTemplate.message; this.HelpMessageTextBox.Text = this.LoopUserTemplate.help; this.LoopConditionsPanel.LoopUserTemplate = this.LoopUserTemplate; this.LoopConditionsPanel.Instruction = this.LoopUserTemplate.Instruction; this.LoopConditionsPanel.conditions = this.LoopUserTemplate.conditions; } else { resetComponent(); } if (this.IsReadOnly) { SetReadOnly(this.IsReadOnly); } this.LoopConditionsPanel.TransformationTreeService = this.TransformationTreeService; this.LoopConditionsPanel.DisplayLoopCondition(); trow = false; }