Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.svGates = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 2:
     this.tbNot = ((GatesWpf.UIGates.Not)(target));
     return;
     case 3:
     this.tbAnd = ((GatesWpf.UIGates.And)(target));
     return;
     case 4:
     this.tbOr = ((GatesWpf.UIGates.Or)(target));
     return;
     case 5:
     this.tbBuffer = ((GatesWpf.UIGates.Buffer)(target));
     return;
     case 6:
     this.tbNand = ((GatesWpf.UIGates.Nand)(target));
     return;
     case 7:
     this.tbNor = ((GatesWpf.UIGates.Nor)(target));
     return;
     case 8:
     this.tbXor = ((GatesWpf.UIGates.Xor)(target));
     return;
     case 9:
     this.tbXnor = ((GatesWpf.UIGates.Xnor)(target));
     return;
     case 10:
     this.tbUserInput = ((GatesWpf.UIGates.UserInput)(target));
     return;
     case 11:
     this.tbUserOutput = ((GatesWpf.UIGates.UserOutput)(target));
     return;
     case 12:
     this.tbNumericOutput = ((GatesWpf.UIGates.DefaultNumericOutput)(target));
     return;
     case 13:
     this.tbNumericInput = ((GatesWpf.UIGates.DefaultNumericInput)(target));
     return;
     case 14:
     this.tbClock = ((GatesWpf.UIGates.Clock)(target));
     return;
     case 15:
     this.tbComment = ((GatesWpf.UIGates.Comment)(target));
     return;
     case 16:
     this.expUserGates = ((System.Windows.Controls.Expander)(target));
     return;
     case 17:
     this.spGates = ((System.Windows.Controls.StackPanel)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.svGates = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 2:
                this.tbNot = ((GatesWpf.UIGates.Not)(target));
                return;

            case 3:
                this.tbAnd = ((GatesWpf.UIGates.And)(target));
                return;

            case 4:
                this.tbOr = ((GatesWpf.UIGates.Or)(target));
                return;

            case 5:
                this.tbBuffer = ((GatesWpf.UIGates.Buffer)(target));
                return;

            case 6:
                this.tbNand = ((GatesWpf.UIGates.Nand)(target));
                return;

            case 7:
                this.tbNor = ((GatesWpf.UIGates.Nor)(target));
                return;

            case 8:
                this.tbXor = ((GatesWpf.UIGates.Xor)(target));
                return;

            case 9:
                this.tbXnor = ((GatesWpf.UIGates.Xnor)(target));
                return;

            case 10:
                this.tbUserInput = ((GatesWpf.UIGates.UserInput)(target));
                return;

            case 11:
                this.tbUserOutput = ((GatesWpf.UIGates.UserOutput)(target));
                return;

            case 12:
                this.tbNumericOutput = ((GatesWpf.UIGates.DefaultNumericOutput)(target));
                return;

            case 13:
                this.tbNumericInput = ((GatesWpf.UIGates.DefaultNumericInput)(target));
                return;

            case 14:
                this.tbClock = ((GatesWpf.UIGates.Clock)(target));
                return;

            case 15:
                this.tbComment = ((GatesWpf.UIGates.Comment)(target));
                return;

            case 16:
                this.expUserGates = ((System.Windows.Controls.Expander)(target));
                return;

            case 17:
                this.spGates = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }