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

            case 2:
                this.myGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 12 "..\..\..\..\view\UserControl\UserControlAutoComplete.xaml"
                this.textComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.textComboBox_SelectionChanged);

            #line default
            #line hidden

            #line 12 "..\..\..\..\view\UserControl\UserControlAutoComplete.xaml"
                this.textComboBox.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.textComboBox_PreviewKeyUp);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\..\..\view\UserControl\UserControlAutoComplete.xaml"
                this.textInput.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textInput_TextChanged);

            #line default
            #line hidden

            #line 16 "..\..\..\..\view\UserControl\UserControlAutoComplete.xaml"
                this.textInput.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.textInput_PreviewKeyDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.TextBreakfast = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.TextLunch = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.TextDinner = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TextSnack = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.Snack = ((HealthApp.UserControlAutoComplete)(target));
                return;

            case 7:
                this.Dinner = ((HealthApp.UserControlAutoComplete)(target));
                return;

            case 8:
                this.Lunch = ((HealthApp.UserControlAutoComplete)(target));
                return;

            case 9:
                this.Breakfast = ((HealthApp.UserControlAutoComplete)(target));
                return;

            case 10:
                this.LunchList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 11:
                this.DinnerList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 12:
                this.SnaclList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 13:
                this.Date = ((System.Windows.Controls.DatePicker)(target));

            #line 156 "..\..\..\..\view\UserControl\Food.xaml"
                this.Date.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.DatePicker_SelectedDateChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }