Exemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\MainWindow.xaml"
     ((SmartHome.MainWindow)(target)).Drop += new System.Windows.DragEventHandler(this.WindowEx_Drop);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((SmartHome.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowEx_Loaded);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((SmartHome.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.WindowEx_DoubleClick);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     ((SmartHome.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.WindowEx_MouseMove);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     ((SmartHome.MainWindow)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.WindowEx_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 2:
     this.BtnMin = ((WPFControlEx.ButtonEx)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.BtnMin.Click += new System.Windows.RoutedEventHandler(this.BtnMin_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.BtnClose = ((WPFControlEx.ButtonEx)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.BtnClose_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Weather_Tem = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.Weather_City = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.Weather_Descr = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.Weather_Icon = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.Tab = ((System.Windows.Controls.TabControl)(target));
     return;
     case 9:
     this.TabItem0 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 10:
     this.Grid0 = ((System.Windows.Controls.Grid)(target));
     return;
     case 11:
     this.MenuItemEdit = ((System.Windows.Controls.MenuItem)(target));
     
     #line 55 "..\..\MainWindow.xaml"
     this.MenuItemEdit.Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.MenuItemAdd = ((System.Windows.Controls.MenuItem)(target));
     
     #line 56 "..\..\MainWindow.xaml"
     this.MenuItemAdd.Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.TabItem1 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 14:
     this.Grid1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 15:
     
     #line 81 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 82 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.TabItem2 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 18:
     this.Grid2 = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     
     #line 107 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     
     #line 108 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.TabItem3 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 22:
     this.Grid3 = ((System.Windows.Controls.Grid)(target));
     return;
     case 23:
     
     #line 133 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 134 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.TabItem4 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 26:
     this.Grid4 = ((System.Windows.Controls.Grid)(target));
     return;
     case 27:
     
     #line 159 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 160 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.TabItem5 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 30:
     this.Grid5 = ((System.Windows.Controls.Grid)(target));
     return;
     case 31:
     
     #line 185 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     
     #line 186 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\MainWindow.xaml"
                ((SmartHome.MainWindow)(target)).Drop += new System.Windows.DragEventHandler(this.WindowEx_Drop);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((SmartHome.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowEx_Loaded);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((SmartHome.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.WindowEx_DoubleClick);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                ((SmartHome.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.WindowEx_MouseMove);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                ((SmartHome.MainWindow)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.WindowEx_MouseLeave);

            #line default
            #line hidden
                return;

            case 2:
                this.BtnMin = ((WPFControlEx.ButtonEx)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.BtnMin.Click += new System.Windows.RoutedEventHandler(this.BtnMin_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.BtnClose = ((WPFControlEx.ButtonEx)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.BtnClose_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 7:
                this.Weather_Icon = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.Tab = ((System.Windows.Controls.TabControl)(target));
                return;

            case 9:
                this.TabItem0 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 10:
                this.Grid0 = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.MenuItemEdit = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.MenuItemAdd = ((System.Windows.Controls.MenuItem)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.MenuItemAdd.Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.TabItem1 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 14:
                this.Grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:

            #line 81 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 82 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.TabItem2 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 18:
                this.Grid2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:

            #line 107 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);

            #line default
            #line hidden
                return;

            case 20:

            #line 108 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.TabItem3 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 22:
                this.Grid3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:

            #line 133 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 134 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.TabItem4 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 26:
                this.Grid4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:

            #line 159 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 160 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.TabItem5 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.Grid5 = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:

            #line 185 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemEdit_Click);

            #line default
            #line hidden
                return;

            case 32:

            #line 186 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemAdd_Click);

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