コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.changeWindow = ((GymMembers.View.ChangeWindow)(target));
                return;

            case 2:
                this.FNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.LNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.EmailLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.FNameTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.LNameTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.EmailTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.UpdateButton = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.DeleteButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.changeWindow = ((GymMembers.View.ChangeWindow)(target));
                return;

            case 2:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.button1 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }