コード例 #1
0
 public void ReadInputsToFile()
 {
     foreach (UIElement ui in Stack.Children)
     {
         CharacterInput input = ui as CharacterInput;
         input.item.Node.Value = input.textBox.Text;
     }
 }
コード例 #2
0
 /// <summary>
 /// Uses an XML reader to add controls from a formatted XML file.
 /// </summary>
 public void AddControls()
 {
     foreach (Control control in ctrlList)
     {
         CharacterInput charInput = new CharacterInput(control);
         Stack.Children.Add(charInput);
     }
 }