コード例 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((Restaurant.ProductsUserControl)(target));
     return;
     case 2:
     this.ContentGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.btnNew = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.btnNew.Click += new System.Windows.RoutedEventHandler(this.btnNew_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnEdit = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnDelete = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.BorderAddEdit = ((System.Windows.Controls.Border)(target));
     return;
     case 7:
     this.txbBorderTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.txbProductName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txbUnit = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.txbGroup = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.txbPrice = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.txbProductCode = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.txtProductName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.cmbUnit = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 15:
     this.btnSave = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.btnCancel = ((System.Windows.Controls.Button)(target));
     
     #line 61 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.txtPrice = ((System.Windows.Controls.TextBox)(target));
     
     #line 63 "..\..\..\UserControls\ProductsUserControl.xaml"
     this.txtPrice.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtPrice_TextChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.txtProductCode = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.cmbGroup = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 20:
     this.ProductsGridView = ((Restaurant.SortableListView)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((Restaurant.ProductWindow)(target));
     
     #line 13 "..\..\ProductWindow.xaml"
     this.Window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.StoryboardUnitFadeIn_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 3:
     this.StoryboardGroupFadeIn_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 4:
     this.StoryboardProductFadeIn_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 5:
     this.StoryboardProductTreeFadeIn_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 6:
     
     #line 127 "..\..\ProductWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed);
     
     #line default
     #line hidden
     return;
     case 7:
     this.TabButtonUnit = ((System.Windows.Controls.Button)(target));
     
     #line 131 "..\..\ProductWindow.xaml"
     this.TabButtonUnit.Click += new System.Windows.RoutedEventHandler(this.TabButtonUnit_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.TabButtonGroup = ((System.Windows.Controls.Button)(target));
     
     #line 132 "..\..\ProductWindow.xaml"
     this.TabButtonGroup.Click += new System.Windows.RoutedEventHandler(this.TabButtonGroup_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.TabButtonProduct = ((System.Windows.Controls.Button)(target));
     
     #line 133 "..\..\ProductWindow.xaml"
     this.TabButtonProduct.Click += new System.Windows.RoutedEventHandler(this.TabButtonProduct_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.TabButtonProductTree = ((System.Windows.Controls.Button)(target));
     
     #line 134 "..\..\ProductWindow.xaml"
     this.TabButtonProductTree.Click += new System.Windows.RoutedEventHandler(this.TabButtonProductTree_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.UnitsPane = ((Restaurant.UnitsUserControl)(target));
     return;
     case 12:
     this.GroupsPane = ((Restaurant.GroupsUserControl)(target));
     return;
     case 13:
     this.ProductsPane = ((Restaurant.ProductsUserControl)(target));
     return;
     case 14:
     this.ProductsTreePane = ((Restaurant.ProductTreeUserControl)(target));
     return;
     }
     this._contentLoaded = true;
 }