private void btnAddSchedule_Click(object sender, RoutedEventArgs e)
 {
     AddSchedule sche = new AddSchedule(curUser, Shippers);
     sche.AddFinshed += new ActionCompleted(AddNewRow);
     sche.ShowDialog();
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.frmScheAdd = ((FastDeliveryGroup.Presentation.StaffForm.AddSchedule)(target));
     
     #line 9 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.frmScheAdd.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.ProductID = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.ProductID_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.ProductID_Copy2 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.ProductID_Copy3 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.cbbShipper = ((System.Windows.Controls.ComboBox)(target));
     
     #line 15 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.cbbShipper.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbxShipper_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnOk = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnCancel = ((System.Windows.Controls.Button)(target));
     return;
     case 9:
     this.btnAddProduct = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.btnAddProduct.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.dgdProduct = ((System.Windows.Controls.DataGrid)(target));
     
     #line 19 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.dgdProduct.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dgdProduct_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 11:
     this.cbbProduct = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.Quantity = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.txtQuantity = ((Xceed.Wpf.Toolkit.MaskedTextBox)(target));
     return;
     case 14:
     this.ProductID_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.txtFilter = ((System.Windows.Controls.TextBox)(target));
     
     #line 29 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.txtFilter.GotFocus += new System.Windows.RoutedEventHandler(this.txtCustomer_GotFocus);
     
     #line default
     #line hidden
     
     #line 29 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.txtFilter.LostFocus += new System.Windows.RoutedEventHandler(this.txtCustomer_LostFocus);
     
     #line default
     #line hidden
     
     #line 29 "..\..\..\..\Presentation\StaffFormm\ScheduleAdding.xaml"
     this.txtFilter.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtCustomer_TextChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.dgdCustomer = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 17:
     this.dpDeliTime = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 18:
     this.txtDescription = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }