コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\..\Detect\NewSample.xaml"
                ((NirIdentifier.Detect.NewSample)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.checkNotAnalyze = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 3:
                this.listMethods = ((NirIdentifier.Common.ModelInfoPanel)(target));
                return;

            case 4:
                this.gridDrugInfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.txtSampleNumber = ((System.Windows.Controls.TextBox)(target));

            #line 95 "..\..\..\..\Detect\NewSample.xaml"
                this.txtSampleNumber.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.listLicenseType = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 98 "..\..\..\..\Detect\NewSample.xaml"
                this.txtLicenseCode.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 8:
                this.btnSeachInfo = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\..\..\Detect\NewSample.xaml"
                this.btnSeachInfo.Click += new System.Windows.RoutedEventHandler(this.btnSeachInfo_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 100 "..\..\..\..\Detect\NewSample.xaml"
                ((System.Windows.Controls.TextBlock)(target)).GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 10:
                this.listChemicalName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txtCommercialName = ((System.Windows.Controls.TextBox)(target));

            #line 103 "..\..\..\..\Detect\NewSample.xaml"
                this.txtCommercialName.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 12:
                this.listForm = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 13:
                this.txtSpecification = ((System.Windows.Controls.TextBox)(target));

            #line 107 "..\..\..\..\Detect\NewSample.xaml"
                this.txtSpecification.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 14:
                this.listProductUnit = ((System.Windows.Controls.TextBox)(target));

            #line 109 "..\..\..\..\Detect\NewSample.xaml"
                this.listProductUnit.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 15:
                this.txtProductTime = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 16:
                this.txtBatchNumber = ((System.Windows.Controls.TextBox)(target));

            #line 113 "..\..\..\..\Detect\NewSample.xaml"
                this.txtBatchNumber.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 17:
                this.txtValidMonth = ((System.Windows.Controls.TextBox)(target));

            #line 115 "..\..\..\..\Detect\NewSample.xaml"
                this.txtValidMonth.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 18:
                this.listScanType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.txtIdentThresold = ((System.Windows.Controls.TextBox)(target));

            #line 120 "..\..\..\..\Detect\NewSample.xaml"
                this.txtIdentThresold.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 20:
                this.listIdentOperator = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 21:
                this.txtMemo = ((System.Windows.Controls.TextBox)(target));

            #line 124 "..\..\..\..\Detect\NewSample.xaml"
                this.txtMemo.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtTextFiled_GotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 22:
                this.btnDetect = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 135 "..\..\..\..\Detect\NewSample.xaml"
                this.btnDetect.Click += new System.Windows.RoutedEventHandler(this.btnDetect_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btnBackground = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 145 "..\..\..\..\Detect\NewSample.xaml"
                this.btnBackground.Click += new System.Windows.RoutedEventHandler(this.btnBackground_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btnRemove = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 153 "..\..\..\..\Detect\NewSample.xaml"
                this.btnRemove.Click += new System.Windows.RoutedEventHandler(this.btnRemove_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.listSampleFiles = ((Ai.Hong.CommonLibrary.Controls.SelectColorList)(target));

            #line 156 "..\..\..\..\Detect\NewSample.xaml"
                this.listSampleFiles.ItemSelected += new System.Windows.RoutedEventHandler(this.listSampleFiles_ItemSelected);

            #line default
            #line hidden
                return;

            case 26:
                this.graphicChart = ((Ai.Hong.CommonLibrary.Chart.MultiSpectrumChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.listFiles = ((Ai.Hong.CommonLibrary.Controls.SelectColorList)(target));

            #line 27 "..\..\..\..\Offline\SampleResult.xaml"
                this.listFiles.ItemSelected += new System.Windows.RoutedEventHandler(this.listFiles_ItemSelected);

            #line default
            #line hidden
                return;

            case 2:
                this.gridDrugInfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.txtMemo = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.graphicChart = ((Ai.Hong.CommonLibrary.Chart.MultiSpectrumChart)(target));
                return;

            case 5:
                this.btnLoad = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 119 "..\..\..\..\Offline\SampleResult.xaml"
                this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnUnload = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 120 "..\..\..\..\Offline\SampleResult.xaml"
                this.btnUnload.Click += new System.Windows.RoutedEventHandler(this.btnUnload_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnReIdentify = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 121 "..\..\..\..\Offline\SampleResult.xaml"
                this.btnReIdentify.Click += new System.Windows.RoutedEventHandler(this.btnReIdentify_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnPrint = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 122 "..\..\..\..\Offline\SampleResult.xaml"
                this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.listFiles = ((Ai.Hong.CommonLibrary.Controls.SelectColorList)(target));
                return;

            case 2:
                this.btnLoad = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 33 "..\..\..\..\NormalScan\NormalScan.xaml"
                this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnRemove = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 34 "..\..\..\..\NormalScan\NormalScan.xaml"
                this.btnRemove.Click += new System.Windows.RoutedEventHandler(this.btnRemove_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.gridPara = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.iniFile = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 54 "..\..\..\..\NormalScan\NormalScan.xaml"
                this.btnSettingBrowse.Click += new System.Windows.RoutedEventHandler(this.btnSettingBrowse_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 57 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Controls.TextBox)(target)).PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.boxInt_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 8:

            #line 59 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Paste_CanExecute);

            #line default
            #line hidden
                return;

            case 9:

            #line 64 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Controls.TextBox)(target)).PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.boxInt_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 10:

            #line 66 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Paste_CanExecute);

            #line default
            #line hidden
                return;

            case 11:

            #line 71 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Controls.TextBox)(target)).PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.boxInt_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 12:

            #line 73 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Paste_CanExecute);

            #line default
            #line hidden
                return;

            case 13:

            #line 78 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Controls.TextBox)(target)).PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.boxInt_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 14:

            #line 80 "..\..\..\..\NormalScan\NormalScan.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Paste_CanExecute);

            #line default
            #line hidden
                return;

            case 15:
                this.btnScanSample = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 86 "..\..\..\..\NormalScan\NormalScan.xaml"
                this.btnScanSample.Click += new System.Windows.RoutedEventHandler(this.btnStartScan_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnScanBackground = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 95 "..\..\..\..\NormalScan\NormalScan.xaml"
                this.btnScanBackground.Click += new System.Windows.RoutedEventHandler(this.btnScanBackground_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.graphicChart = ((Ai.Hong.CommonLibrary.Chart.MultiSpectrumChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnModelNew = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 21 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnModelNew.Click += new System.Windows.RoutedEventHandler(this.btnModelNew_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.btnModelDelete = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 22 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnModelDelete.Click += new System.Windows.RoutedEventHandler(this.btnModelDelete_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnModelSearch = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));
                return;

            case 4:
                this.listModels = ((NirIdentifier.Common.ModelInfoPanel)(target));
                return;

            case 5:
                this.gridFileAndRegion = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.groupFiles = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 7:
                this.btnFileAdd = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 49 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnFileAdd.Click += new System.Windows.RoutedEventHandler(this.btnFileAdd_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnFileRemove = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 50 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnFileRemove.Click += new System.Windows.RoutedEventHandler(this.btnFileRemove_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.listFiles = ((Ai.Hong.CommonLibrary.Controls.SelectColorList)(target));
                return;

            case 10:
                this.groupRegions = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 11:
                this.btnRegionAdd = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 60 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnRegionAdd.Click += new System.Windows.RoutedEventHandler(this.btnRegionAdd_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnRegionDelete = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 61 "..\..\..\..\SystemSetup\ModelCreator.xaml"
                this.btnRegionDelete.Click += new System.Windows.RoutedEventHandler(this.btnRegionDelete_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.listRegions = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 15:
                this.graphicChart = ((Ai.Hong.CommonLibrary.Chart.MultiSpectrumChart)(target));
                return;
            }
            this._contentLoaded = true;
        }