private void chkDrop_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         if (CPerformDrop.IsBusy || CDeclaration.IsBusy)
         {
             if (CDeclaration.IsBusy)
             {
                 chkDrop.IsChecked = false;
                 MessageBox.ShowBox("MessageID368", BMC_Icon.Information);
             }
             e.Handled = false;
             return;
         }
         chkDrop.IsEnabled = false;
         pnlDropContent.Children.Clear();
         CPerformDrop performDrop = new CPerformDrop();
         pnlDropContent.Children.Add(performDrop);
         performDrop.Margin = new Thickness(0);
     }
     finally
     {
         if (!CDeclaration.IsBusy)
         {
             chkDrop.IsEnabled = true;
             chkDrop.IsChecked = true;
         }
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((BMC.Presentation.CPerformDrop)(target));

            #line 2 "..\..\..\Views\CPerformDrop.xaml"
                this.UserControl.Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded);

            #line default
            #line hidden

            #line 2 "..\..\..\Views\CPerformDrop.xaml"
                this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.btnPrintDrop = ((System.Windows.Controls.Button)(target));

            #line 112 "..\..\..\Views\CPerformDrop.xaml"
                this.btnPrintDrop.Click += new System.Windows.RoutedEventHandler(this.btnPrintDrop_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnPerformDrop = ((System.Windows.Controls.Button)(target));

            #line 113 "..\..\..\Views\CPerformDrop.xaml"
                this.btnPerformDrop.Click += new System.Windows.RoutedEventHandler(this.btnPerformDrop_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnStartDrop = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\..\Views\CPerformDrop.xaml"
                this.btnStartDrop.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnStopDrop = ((System.Windows.Controls.Button)(target));

            #line 115 "..\..\..\Views\CPerformDrop.xaml"
                this.btnStopDrop.Click += new System.Windows.RoutedEventHandler(this.btnStopDrop_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.pgBarMachineDrop = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 9:
                this.txtPGStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.tvMachineList = ((System.Windows.Controls.TreeView)(target));
                return;

            case 11:
                this.cboMachineType = ((System.Windows.Controls.ComboBox)(target));

            #line 132 "..\..\..\Views\CPerformDrop.xaml"
                this.cboMachineType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboMachineType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.chkZone = ((System.Windows.Controls.CheckBox)(target));

            #line 133 "..\..\..\Views\CPerformDrop.xaml"
                this.chkZone.Checked += new System.Windows.RoutedEventHandler(this.chkZone_Checked);

            #line default
            #line hidden

            #line 133 "..\..\..\Views\CPerformDrop.xaml"
                this.chkZone.Unchecked += new System.Windows.RoutedEventHandler(this.chkZone_UnChecked);

            #line default
            #line hidden
                return;

            case 13:
                this.RdDrop = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 14:
                this.rdoFullCount = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.rdoInterimCount = ((System.Windows.Controls.RadioButton)(target));

            #line 139 "..\..\..\Views\CPerformDrop.xaml"
                this.rdoInterimCount.Checked += new System.Windows.RoutedEventHandler(this.rdoInterimCount_Checked_1);

            #line default
            #line hidden

            #line 139 "..\..\..\Views\CPerformDrop.xaml"
                this.rdoInterimCount.Unchecked += new System.Windows.RoutedEventHandler(this.rdoInterimCount_Unchecked_1);

            #line default
            #line hidden
                return;

            case 16:
                this.rdoFinalCount = ((System.Windows.Controls.RadioButton)(target));

            #line 140 "..\..\..\Views\CPerformDrop.xaml"
                this.rdoFinalCount.Checked += new System.Windows.RoutedEventHandler(this.rdoFinalCount_Checked);

            #line default
            #line hidden

            #line 140 "..\..\..\Views\CPerformDrop.xaml"
                this.rdoFinalCount.Unchecked += new System.Windows.RoutedEventHandler(this.rdoFinalCount_Unchecked);

            #line default
            #line hidden
                return;

            case 17:
                this.Batch = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 18:
                this.rdoNewBatch = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.rdoExistingBatch = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.cboDropBatch = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void chkDrop_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         if (CPerformDrop.IsBusy || CDeclaration.IsBusy)
         {
             if (CDeclaration.IsBusy)
             {
                 chkDrop.IsChecked = false;
                 MessageBox.ShowBox("MessageID368", BMC_Icon.Information);
             }
             e.Handled = false;
             return;
         }
         chkDrop.IsEnabled = false;
         pnlDropContent.Children.Clear();
         CPerformDrop performDrop = new CPerformDrop();
         pnlDropContent.Children.Add(performDrop);
         performDrop.Margin = new Thickness(0);
     }
     finally
     {
         if (!CDeclaration.IsBusy)
         {
             chkDrop.IsEnabled = true;
             chkDrop.IsChecked = true;
         }
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BMC.Presentation.CPerformDrop)(target));
     
     #line 2 "..\..\..\Views\CPerformDrop.xaml"
     this.UserControl.Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded);
     
     #line default
     #line hidden
     
     #line 2 "..\..\..\Views\CPerformDrop.xaml"
     this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     return;
     case 3:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.btnPrintDrop = ((System.Windows.Controls.Button)(target));
     
     #line 112 "..\..\..\Views\CPerformDrop.xaml"
     this.btnPrintDrop.Click += new System.Windows.RoutedEventHandler(this.btnPrintDrop_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnPerformDrop = ((System.Windows.Controls.Button)(target));
     
     #line 113 "..\..\..\Views\CPerformDrop.xaml"
     this.btnPerformDrop.Click += new System.Windows.RoutedEventHandler(this.btnPerformDrop_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnStartDrop = ((System.Windows.Controls.Button)(target));
     
     #line 114 "..\..\..\Views\CPerformDrop.xaml"
     this.btnStartDrop.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnStopDrop = ((System.Windows.Controls.Button)(target));
     
     #line 115 "..\..\..\Views\CPerformDrop.xaml"
     this.btnStopDrop.Click += new System.Windows.RoutedEventHandler(this.btnStopDrop_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.pgBarMachineDrop = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 9:
     this.txtPGStatus = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.tvMachineList = ((System.Windows.Controls.TreeView)(target));
     return;
     case 11:
     this.cboMachineType = ((System.Windows.Controls.ComboBox)(target));
     
     #line 132 "..\..\..\Views\CPerformDrop.xaml"
     this.cboMachineType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboMachineType_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 12:
     this.chkZone = ((System.Windows.Controls.CheckBox)(target));
     
     #line 133 "..\..\..\Views\CPerformDrop.xaml"
     this.chkZone.Checked += new System.Windows.RoutedEventHandler(this.chkZone_Checked);
     
     #line default
     #line hidden
     
     #line 133 "..\..\..\Views\CPerformDrop.xaml"
     this.chkZone.Unchecked += new System.Windows.RoutedEventHandler(this.chkZone_UnChecked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.RdDrop = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 14:
     this.rdoFullCount = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 15:
     this.rdoInterimCount = ((System.Windows.Controls.RadioButton)(target));
     
     #line 139 "..\..\..\Views\CPerformDrop.xaml"
     this.rdoInterimCount.Checked += new System.Windows.RoutedEventHandler(this.rdoInterimCount_Checked_1);
     
     #line default
     #line hidden
     
     #line 139 "..\..\..\Views\CPerformDrop.xaml"
     this.rdoInterimCount.Unchecked += new System.Windows.RoutedEventHandler(this.rdoInterimCount_Unchecked_1);
     
     #line default
     #line hidden
     return;
     case 16:
     this.rdoFinalCount = ((System.Windows.Controls.RadioButton)(target));
     
     #line 140 "..\..\..\Views\CPerformDrop.xaml"
     this.rdoFinalCount.Checked += new System.Windows.RoutedEventHandler(this.rdoFinalCount_Checked);
     
     #line default
     #line hidden
     
     #line 140 "..\..\..\Views\CPerformDrop.xaml"
     this.rdoFinalCount.Unchecked += new System.Windows.RoutedEventHandler(this.rdoFinalCount_Unchecked);
     
     #line default
     #line hidden
     return;
     case 17:
     this.Batch = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 18:
     this.rdoNewBatch = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 19:
     this.rdoExistingBatch = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 20:
     this.cboDropBatch = ((System.Windows.Controls.ComboBox)(target));
     return;
     }
     this._contentLoaded = true;
 }