Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.coeffVM = ((Wsr1.ViewModel.CoefficientViewModel)(target));
                return;

            case 2:
                this.CoefficientAnalisBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.CoefficientInstallBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.CoefficientServiceBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

            case 8:
                this.MiddleBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.SeniorBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.CloseButton = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.EditButton = ((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.coeffVM = ((Wsr1.ViewModel.CoefficientViewModel)(target));
                return;

            case 2:
                this.CoefficientDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.EditButton = ((System.Windows.Controls.Button)(target));
                return;

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