Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((inventory.View.EditProduct)(target));

            #line 7 "..\..\..\..\View\Products\EditProduct.xaml"
                this.window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Drag_Window);

            #line default
            #line hidden
                return;

            case 2:

            #line 9 "..\..\..\..\View\Products\EditProduct.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed);

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 8:

            #line 72 "..\..\..\..\View\Products\EditProduct.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 9:

            #line 132 "..\..\..\..\View\Products\EditProduct.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((inventory.View.EditProduct)(target));
     
     #line 7 "..\..\..\..\View\Products\EditProduct.xaml"
     this.window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Drag_Window);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 9 "..\..\..\..\View\Products\EditProduct.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txt_ProductName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.lst_category = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.lst_subcategory = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.txt_CostPrice = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.txt_SellingPrice = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     
     #line 72 "..\..\..\..\View\Products\EditProduct.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 132 "..\..\..\..\View\Products\EditProduct.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }