コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.taskVM = ((Wsr1.ViewModel.TaskViewModel)(target));
                return;

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

            case 3:
                this.StatusFilterBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.FirstNameFillterBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.SecondNameFillterBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.LastNameFillterBox = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.taskVM = ((Wsr1.ViewModel.TaskViewModel)(target));
                return;

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

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

            case 4:
                this.NatureOfWorkBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.StatusBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.DateTimeBox = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.GroupBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.ExecutorInGroup = ((System.Windows.Controls.ListBox)(target));
                return;

            case 9:
                this.BackButton = ((System.Windows.Controls.Button)(target));
                return;

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