Exemple #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.winHome = ((MRP4ME.MainWindow)(target));
     return;
     case 2:
     this.tabCtrlMain = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.tabItemWelcome = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.gridWelcome = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.lblWelcome = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.tabItemCreatePO = ((System.Windows.Controls.TabItem)(target));
     return;
     case 7:
     this.gridCreatePO = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.rectPO = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 9:
     this.lblCustName = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.txtCustomerName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.lblRequiredDate = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.dtpRequiredDate = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 13:
     this.lblPONumber = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.txtPONumber = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.lblItemCode = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.txtItemCode = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.lblUnit = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.txtUnit = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.lblUnitCost = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.txtUnitCost = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.lblPODesc = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.txtDescription = ((System.Windows.Controls.TextBox)(target));
     return;
     case 23:
     this.lblQuantity = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.txtQuantity = ((System.Windows.Controls.TextBox)(target));
     return;
     case 25:
     this.lblQuantityReceived = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.txtQuantityReceived = ((System.Windows.Controls.TextBox)(target));
     return;
     case 27:
     this.lblBackOrdered = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.txtBackOrdered = ((System.Windows.Controls.TextBox)(target));
     return;
     case 29:
     this.lblAttachment = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.txtAttachment = ((System.Windows.Controls.TextBox)(target));
     return;
     case 31:
     this.btnAttachBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 202 "..\..\..\MainWindow.xaml"
     this.btnAttachBrowse.Click += new System.Windows.RoutedEventHandler(this.BtnAttachmentBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.lblUploadImage = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.txtImage = ((System.Windows.Controls.TextBox)(target));
     return;
     case 34:
     this.btnUploadImageBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 212 "..\..\..\MainWindow.xaml"
     this.btnUploadImageBrowse.Click += new System.Windows.RoutedEventHandler(this.BtnImageBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.lblPOCreatedBy = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.txtUserName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 37:
     this.lblLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.txtLevel = ((System.Windows.Controls.TextBox)(target));
     return;
     case 39:
     this.btnSavePO = ((System.Windows.Controls.Button)(target));
     
     #line 230 "..\..\..\MainWindow.xaml"
     this.btnSavePO.Click += new System.Windows.RoutedEventHandler(this.btnSavePO_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.winHome = ((MRP4ME.MainWindow)(target));
     return;
     case 2:
     this.tabCtrlMain = ((System.Windows.Controls.TabControl)(target));
     
     #line 72 "..\..\..\MainWindow.xaml"
     this.tabCtrlMain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabCtrlMain_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tabItemWelcome = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.gridWelcome = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.lblWelcome = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.tabItemCreatePO = ((System.Windows.Controls.TabItem)(target));
     return;
     case 7:
     this.gridCreatePO = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.lblPONo = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.txtPO = ((System.Windows.Controls.TextBox)(target));
     
     #line 133 "..\..\..\MainWindow.xaml"
     this.txtPO.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtPONo_TextChanged);
     
     #line default
     #line hidden
     return;
     case 10:
     this.lblPOName = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.txtName = ((System.Windows.Controls.TextBox)(target));
     
     #line 139 "..\..\..\MainWindow.xaml"
     this.txtName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtName_TextChanged);
     
     #line default
     #line hidden
     return;
     case 12:
     this.lblPODesc = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.txtDescription = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.lblAttachment = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.txtAttachment = ((System.Windows.Controls.TextBox)(target));
     
     #line 155 "..\..\..\MainWindow.xaml"
     this.txtAttachment.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtAttach_TextChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.btnAttachBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 164 "..\..\..\MainWindow.xaml"
     this.btnAttachBrowse.Click += new System.Windows.RoutedEventHandler(this.BtnAttachmentBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.lblUploadImage = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.txtImage = ((System.Windows.Controls.TextBox)(target));
     
     #line 166 "..\..\..\MainWindow.xaml"
     this.txtImage.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtImage_TextChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.btnUploadImageBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 175 "..\..\..\MainWindow.xaml"
     this.btnUploadImageBrowse.Click += new System.Windows.RoutedEventHandler(this.BtnImageBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.lblPOCreatedBy = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.txtUser = ((System.Windows.Controls.TextBox)(target));
     
     #line 177 "..\..\..\MainWindow.xaml"
     this.txtUser.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtUser_TextChanged);
     
     #line default
     #line hidden
     return;
     case 22:
     this.lblLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.txtLevel = ((System.Windows.Controls.TextBox)(target));
     
     #line 187 "..\..\..\MainWindow.xaml"
     this.txtLevel.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtLevel_TextChanged);
     
     #line default
     #line hidden
     return;
     case 24:
     this.btnSavePO = ((System.Windows.Controls.Button)(target));
     
     #line 196 "..\..\..\MainWindow.xaml"
     this.btnSavePO.Click += new System.Windows.RoutedEventHandler(this.btnSavePO_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.tabItemProdSched = ((System.Windows.Controls.TabItem)(target));
     return;
     case 26:
     this.gridProdSched = ((System.Windows.Controls.Grid)(target));
     return;
     }
     this._contentLoaded = true;
 }