Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ipTextBox1 = ((TestIPBox.Controls.Class.IPTextBox)(target));
                return;

            case 2:
                this.ipTextBox2 = ((TestIPBox.Controls.Class.IPTextBox)(target));
                return;

            case 3:
                this.ipTextBox3 = ((TestIPBox.Controls.Class.IPTextBox)(target));
                return;

            case 4:
                this.ipTextBox4 = ((TestIPBox.Controls.Class.IPTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
 //设置邻居
 public void setNeighbour(IPTextBox left, IPTextBox right)
 {
     leftBox  = left;
     rightBox = right;
 }