Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mw = ((Med.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mw.Closing += new System.ComponentModel.CancelEventHandler(this.mw_Closing);

            #line default
            #line hidden
                return;

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

            case 3:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabControl)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.TabControl_MouseEnter);

            #line default
            #line hidden
                return;

            case 4:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.mon = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.tue = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.wed = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.thurs = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.fri = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.sat = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.sun = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lbMon = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.lbTue = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lbWed = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.lbThu = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.lbFri = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.lbSat = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.lbSun = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.lbMonNext = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.datePick = ((System.Windows.Controls.DatePicker)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.datePick.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.datePick_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.curDayBtn = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.curDayBtn.Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 22:

            #line 54 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btnNext = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.btnNext.Click += new System.Windows.RoutedEventHandler(this.btnNext_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.stackMon = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 25:
                this.stackTue = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 26:
                this.stackWed = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 27:
                this.stackThurs = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 28:
                this.stackFri = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 29:
                this.stackSat = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 30:
                this.stackSun = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 31:
                this.testBtn = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.testBtn.Click += new System.Windows.RoutedEventHandler(this.testBtn_Click);

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