Exemplo n.º 1
0
 protected override VisualItem CreateRootVisual()
 {
     VisualInputGroup g = new VisualInputGroup();
     VisualIntegerInput i = new VisualIntegerInput();
     i.ValueChanged += new EventHandler(InputItemValueChanged);
     g.Items.Add(i);
     _InputGroup = g;
     _IntegerInput = i;
     return g;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the IPAddressGroup class.
 /// </summary>
 public IpAddressGroup()
 {
     // Create IP4 default items
     for (int i = 0; i < 4; i++)
     {
         VisualIntegerInput input = new VisualIntegerInput();
         input.MaxValue = 255;
         input.MinValue = 0;
         this.Items.Add(input);
         if (i < 3)
         {
             VisualLabel label = new VisualLabel();
             label.Text = ".";
             this.Items.Add(label);
         }
     }
 }