예제 #1
0
 /// <summary>
 /// Create a spinner shell with a minimum of 0, maximum of 63, and initial vlaue of 0.
 /// </summary>
 /// <param name="spinner">ButtonSpinner form element</param>
 public SpinnerData(ButtonSpinner spinner)
 {
     Spinner = spinner;
     Minimum = 0;
     Maximum = 63;
     Value = 0;
     spinner.ValidSpinDirection = ValidSpinDirections.Increase;
 }
예제 #2
0
 /// <summary>
 /// Cteate a spinner shell with a minimum, maximum, and initial value
 /// </summary>
 /// <param name="spinner">ButtonSpinner form element</param>
 /// <param name="minimum">Minimum value</param>
 /// <param name="maximum">Maximum value</param>
 /// <param name="initial">Initial value</param>
 public SpinnerData(ButtonSpinner spinner, int minimum, int maximum, int initial)
 {
     Spinner = spinner;
     Minimum = minimum;
     Maximum = maximum;
     Value = initial;
     if (initial == minimum)
         spinner.ValidSpinDirection = ValidSpinDirections.Increase;
     if (initial == maximum)
         spinner.ValidSpinDirection = ValidSpinDirections.Decrease;
     if (minimum == maximum)
         spinner.ValidSpinDirection = ValidSpinDirections.None;
 }
예제 #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((SSLAR2_Viewer.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((SSLAR2_Viewer.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.ExitPrg);
     
     #line default
     #line hidden
     return;
     case 2:
     this.infolabel1 = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.nframelabel = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.label7 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.label9 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.analysis_label = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.analysis_box = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 13:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.num_frames = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.WriteAnalysisDatatoFileClick);
     
     #line default
     #line hidden
     return;
     case 16:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 30 "..\..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.AppendButtonClick);
     
     #line default
     #line hidden
     return;
     case 17:
     this.FtotalNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.FtempNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.FtotalFPN_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.Navrg_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.PtotalNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.PtempNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.PtotalFPN_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.FlickerNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.RtotalNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.RtempNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.RtotalFPN_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.CtotalNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.CtempNoise_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.CtotalFPN_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.label27 = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.input_refered = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 33:
     this.Nperconvert = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 34:
     this.Nconvert = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 35:
     this.label23 = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.light_level = ((System.Windows.Controls.TextBox)(target));
     return;
     case 37:
     this.label28 = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.fps_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.it_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 40:
     this.label31 = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.dmin_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.dmax_caption = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.Hflip = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 44:
     this.Vflip = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 45:
     this.Memo1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 46:
     this.bn_Run = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.bn_Run.Click += new System.Windows.RoutedEventHandler(this.RunPrgWrapper);
     
     #line default
     #line hidden
     return;
     case 47:
     this.bn_Stop = ((System.Windows.Controls.Button)(target));
     
     #line 61 "..\..\..\MainWindow.xaml"
     this.bn_Stop.Click += new System.Windows.RoutedEventHandler(this.StopPrgWrapper);
     
     #line default
     #line hidden
     return;
     case 48:
     this.bn_Update = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\..\MainWindow.xaml"
     this.bn_Update.Click += new System.Windows.RoutedEventHandler(this.UpdateDut);
     
     #line default
     #line hidden
     return;
     case 49:
     this.button6 = ((System.Windows.Controls.Button)(target));
     
     #line 63 "..\..\..\MainWindow.xaml"
     this.button6.Click += new System.Windows.RoutedEventHandler(this.SaveINI);
     
     #line default
     #line hidden
     return;
     case 50:
     this.button7 = ((System.Windows.Controls.Button)(target));
     
     #line 64 "..\..\..\MainWindow.xaml"
     this.button7.Click += new System.Windows.RoutedEventHandler(this.LoadINI);
     
     #line default
     #line hidden
     return;
     case 51:
     this.button8 = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\..\MainWindow.xaml"
     this.button8.Click += new System.Windows.RoutedEventHandler(this.LoadDEF);
     
     #line default
     #line hidden
     return;
     case 52:
     this.button9 = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\..\MainWindow.xaml"
     this.button9.Click += new System.Windows.RoutedEventHandler(this.SaveBmp);
     
     #line default
     #line hidden
     return;
     case 53:
     this.button10 = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\..\MainWindow.xaml"
     this.button10.Click += new System.Windows.RoutedEventHandler(this.SaveBMP2Xcorr1Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
     return;
     case 55:
     this.tabItem1 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 56:
     this.label34 = ((System.Windows.Controls.Label)(target));
     return;
     case 57:
     this.label35 = ((System.Windows.Controls.Label)(target));
     return;
     case 58:
     this.label36 = ((System.Windows.Controls.Label)(target));
     return;
     case 59:
     this.PDAC1_SB = ((System.Windows.Controls.Slider)(target));
     
     #line 74 "..\..\..\MainWindow.xaml"
     this.PDAC1_SB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SliderMenus);
     
     #line default
     #line hidden
     return;
     case 60:
     this.PDAC2_SB = ((System.Windows.Controls.Slider)(target));
     
     #line 75 "..\..\..\MainWindow.xaml"
     this.PDAC2_SB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SliderMenus);
     
     #line default
     #line hidden
     return;
     case 61:
     this.PDAC3_SB = ((System.Windows.Controls.Slider)(target));
     
     #line 76 "..\..\..\MainWindow.xaml"
     this.PDAC3_SB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SliderMenus);
     
     #line default
     #line hidden
     return;
     case 62:
     this.pdac1_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 63:
     this.pdac2_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 64:
     this.pdac3_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 65:
     this.label37 = ((System.Windows.Controls.Label)(target));
     return;
     case 66:
     this.step_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 81 "..\..\..\MainWindow.xaml"
     this.step_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 67:
     this.vln_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 82 "..\..\..\MainWindow.xaml"
     this.vln_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 68:
     this.ampbias_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 83 "..\..\..\MainWindow.xaml"
     this.ampbias_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 69:
     this.compbias_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 84 "..\..\..\MainWindow.xaml"
     this.compbias_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 70:
     this.step_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 71:
     this.vln_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 72:
     this.ampbias_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 73:
     this.compbias_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 74:
     this.label38 = ((System.Windows.Controls.Label)(target));
     return;
     case 75:
     this.label39 = ((System.Windows.Controls.Label)(target));
     return;
     case 76:
     this.label40 = ((System.Windows.Controls.Label)(target));
     return;
     case 77:
     this.label41 = ((System.Windows.Controls.Label)(target));
     return;
     case 78:
     this.threshold_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 93 "..\..\..\MainWindow.xaml"
     this.threshold_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 79:
     this.magbias_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 94 "..\..\..\MainWindow.xaml"
     this.magbias_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 80:
     this.irefout_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 95 "..\..\..\MainWindow.xaml"
     this.irefout_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 81:
     this.eventbias_updown = ((Microsoft.Windows.Controls.ButtonSpinner)(target));
     
     #line 96 "..\..\..\MainWindow.xaml"
     this.eventbias_updown.Spin += new System.EventHandler<Microsoft.Windows.Controls.SpinEventArgs>(this.UpdownMenusS);
     
     #line default
     #line hidden
     return;
     case 82:
     this.threshold_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 83:
     this.magbias_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 84:
     this.irefout_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 85:
     this.eventbias_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 86:
     this.label42 = ((System.Windows.Controls.Label)(target));
     return;
     case 87:
     this.label43 = ((System.Windows.Controls.Label)(target));
     return;
     case 88:
     this.label44 = ((System.Windows.Controls.Label)(target));
     return;
     case 89:
     this.label45 = ((System.Windows.Controls.Label)(target));
     return;
     case 90:
     this.label46 = ((System.Windows.Controls.Label)(target));
     return;
     case 91:
     this.label47 = ((System.Windows.Controls.Label)(target));
     return;
     case 92:
     this.label48 = ((System.Windows.Controls.Label)(target));
     return;
     case 93:
     this.pdac4_text = ((System.Windows.Controls.TextBox)(target));
     return;
     case 94:
     this.label49 = ((System.Windows.Controls.Label)(target));
     return;
     case 95:
     this.boost_en = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 96:
     this.watermark_en = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 97:
     this.force_en = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 98:
     this.override_en = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 99:
     this.ref_pwron = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 100:
     this.iref_updown = ((System.Windows.Controls.ComboBox)(target));
     
     #line 115 "..\..\..\MainWindow.xaml"
     this.iref_updown.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdownMenusC);
     
     #line default
     #line hidden
     return;
     case 101:
     this.osc_updown = ((System.Windows.Controls.ComboBox)(target));
     
     #line 125 "..\..\..\MainWindow.xaml"
     this.osc_updown.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdownMenusC);
     
     #line default
     #line hidden
     return;
     case 102:
     this.mag_updown = ((System.Windows.Controls.ComboBox)(target));
     
     #line 135 "..\..\..\MainWindow.xaml"
     this.mag_updown.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdownMenusC);
     
     #line default
     #line hidden
     return;
     case 103:
     this.gain_updown = ((System.Windows.Controls.ComboBox)(target));
     
     #line 145 "..\..\..\MainWindow.xaml"
     this.gain_updown.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdownMenusC);
     
     #line default
     #line hidden
     return;
     case 104:
     this.tabItem2 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 105:
     this.label50 = ((System.Windows.Controls.Label)(target));
     return;
     case 106:
     this.label51 = ((System.Windows.Controls.Label)(target));
     return;
     case 107:
     this.Amap_en = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 108:
     this.SBGamma = ((System.Windows.Controls.Slider)(target));
     
     #line 162 "..\..\..\MainWindow.xaml"
     this.SBGamma.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SbGammaChange);
     
     #line default
     #line hidden
     return;
     case 109:
     this.ADC_Gamma = ((System.Windows.Controls.Slider)(target));
     
     #line 163 "..\..\..\MainWindow.xaml"
     this.ADC_Gamma.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SbGammaChange);
     
     #line default
     #line hidden
     return;
     case 110:
     this.EGamma = ((System.Windows.Controls.TextBox)(target));
     return;
     case 111:
     this.deltax = ((System.Windows.Controls.TextBox)(target));
     return;
     case 112:
     this.AGamma = ((System.Windows.Controls.TextBox)(target));
     return;
     case 113:
     this.deltay = ((System.Windows.Controls.TextBox)(target));
     return;
     case 114:
     this.ybas = ((System.Windows.Controls.TextBox)(target));
     return;
     case 115:
     this.xbas = ((System.Windows.Controls.TextBox)(target));
     return;
     case 116:
     this.pixy = ((System.Windows.Controls.TextBox)(target));
     return;
     case 117:
     this.pixx = ((System.Windows.Controls.TextBox)(target));
     return;
     case 118:
     this.label52 = ((System.Windows.Controls.Label)(target));
     return;
     case 119:
     this.label53 = ((System.Windows.Controls.Label)(target));
     return;
     case 120:
     this.label54 = ((System.Windows.Controls.Label)(target));
     return;
     case 121:
     this.label55 = ((System.Windows.Controls.Label)(target));
     return;
     case 122:
     this.label56 = ((System.Windows.Controls.Label)(target));
     return;
     case 123:
     this.label57 = ((System.Windows.Controls.Label)(target));
     return;
     case 124:
     this.blue_dotbox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 125:
     this.showanabox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 126:
     this.button11 = ((System.Windows.Controls.Button)(target));
     
     #line 180 "..\..\..\MainWindow.xaml"
     this.button11.Click += new System.Windows.RoutedEventHandler(this.SaveTestClick);
     
     #line default
     #line hidden
     return;
     case 127:
     this.button12 = ((System.Windows.Controls.Button)(target));
     
     #line 181 "..\..\..\MainWindow.xaml"
     this.button12.Click += new System.Windows.RoutedEventHandler(this.SaveTxt);
     
     #line default
     #line hidden
     return;
     case 128:
     this.button13 = ((System.Windows.Controls.Button)(target));
     
     #line 182 "..\..\..\MainWindow.xaml"
     this.button13.Click += new System.Windows.RoutedEventHandler(this.FrameDistribution);
     
     #line default
     #line hidden
     return;
     case 129:
     this.button14 = ((System.Windows.Controls.Button)(target));
     
     #line 183 "..\..\..\MainWindow.xaml"
     this.button14.Click += new System.Windows.RoutedEventHandler(this.RowDistributionsClick);
     
     #line default
     #line hidden
     return;
     case 130:
     this.tabItem3 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 131:
     this.power_shot = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 132:
     this.button15 = ((System.Windows.Controls.Button)(target));
     
     #line 189 "..\..\..\MainWindow.xaml"
     this.button15.Click += new System.Windows.RoutedEventHandler(this.RunAllClick);
     
     #line default
     #line hidden
     return;
     case 133:
     this.label58 = ((System.Windows.Controls.Label)(target));
     return;
     case 134:
     this.mse_thresh = ((System.Windows.Controls.TextBox)(target));
     return;
     case 135:
     this.pstep1 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 136:
     this.pstep0 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 137:
     this.rstep1 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 138:
     this.rstep0 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 139:
     this.label59 = ((System.Windows.Controls.Label)(target));
     return;
     case 140:
     this.label60 = ((System.Windows.Controls.Label)(target));
     return;
     case 141:
     this.fast_slow = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 142:
     this.sslar_write = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 143:
     this.all_nom = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 144:
     this.SSLAR_Analysis_file = ((System.Windows.Controls.TextBox)(target));
     return;
     case 145:
     this.button16 = ((System.Windows.Controls.Button)(target));
     
     #line 202 "..\..\..\MainWindow.xaml"
     this.button16.Click += new System.Windows.RoutedEventHandler(this.SslarAnalysisFileBuildClick);
     
     #line default
     #line hidden
     return;
     case 146:
     this.Video_SaveBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 147:
     this.label61 = ((System.Windows.Controls.Label)(target));
     return;
     case 148:
     this.Videoname = ((System.Windows.Controls.TextBox)(target));
     return;
     case 149:
     this.label62 = ((System.Windows.Controls.Label)(target));
     return;
     case 150:
     this.label63 = ((System.Windows.Controls.Label)(target));
     return;
     case 151:
     this.label64 = ((System.Windows.Controls.Label)(target));
     return;
     case 152:
     this.label65 = ((System.Windows.Controls.Label)(target));
     return;
     case 153:
     this.label66 = ((System.Windows.Controls.Label)(target));
     return;
     case 154:
     this.label67 = ((System.Windows.Controls.Label)(target));
     return;
     case 155:
     this.MSE_level = ((System.Windows.Controls.Label)(target));
     return;
     case 156:
     this.MAE_level = ((System.Windows.Controls.Label)(target));
     return;
     case 157:
     this.pspnr_level = ((System.Windows.Controls.Label)(target));
     return;
     case 158:
     this.sslar_avrg = ((System.Windows.Controls.Label)(target));
     return;
     case 159:
     this.CCorr_level = ((System.Windows.Controls.Label)(target));
     return;
     case 160:
     this.CCorrZ_level = ((System.Windows.Controls.Label)(target));
     return;
     case 161:
     this.tabItem4 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 162:
     this.label74 = ((System.Windows.Controls.Label)(target));
     return;
     case 163:
     this.sub_dark = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 164:
     this.button17 = ((System.Windows.Controls.Button)(target));
     
     #line 224 "..\..\..\MainWindow.xaml"
     this.button17.Click += new System.Windows.RoutedEventHandler(this.SaveDefects1Click);
     
     #line default
     #line hidden
     return;
     case 165:
     this.button18 = ((System.Windows.Controls.Button)(target));
     
     #line 225 "..\..\..\MainWindow.xaml"
     this.button18.Click += new System.Windows.RoutedEventHandler(this.LoadDefects);
     
     #line default
     #line hidden
     return;
     case 166:
     this.label75 = ((System.Windows.Controls.Label)(target));
     return;
     case 167:
     this.DefectCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 168:
     this.defect_min = ((System.Windows.Controls.TextBox)(target));
     return;
     case 169:
     this.Dark_level = ((System.Windows.Controls.Label)(target));
     return;
     case 170:
     this.menu1 = ((System.Windows.Controls.Menu)(target));
     return;
     case 171:
     this.OpenPort = ((System.Windows.Controls.MenuItem)(target));
     
     #line 235 "..\..\..\MainWindow.xaml"
     this.OpenPort.Click += new System.Windows.RoutedEventHandler(this.DoOpenPort);
     
     #line default
     #line hidden
     return;
     case 172:
     this.ClosePort = ((System.Windows.Controls.MenuItem)(target));
     
     #line 236 "..\..\..\MainWindow.xaml"
     this.ClosePort.Click += new System.Windows.RoutedEventHandler(this.DoClosePort);
     
     #line default
     #line hidden
     return;
     case 173:
     this.RunMenu = ((System.Windows.Controls.MenuItem)(target));
     
     #line 237 "..\..\..\MainWindow.xaml"
     this.RunMenu.Click += new System.Windows.RoutedEventHandler(this.RunPrgWrapper);
     
     #line default
     #line hidden
     return;
     case 174:
     this.StopMenu = ((System.Windows.Controls.MenuItem)(target));
     
     #line 238 "..\..\..\MainWindow.xaml"
     this.StopMenu.Click += new System.Windows.RoutedEventHandler(this.StopPrgWrapper);
     
     #line default
     #line hidden
     return;
     case 175:
     
     #line 240 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveTxt);
     
     #line default
     #line hidden
     return;
     case 176:
     
     #line 241 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveBMP2Xcorr1Click);
     
     #line default
     #line hidden
     return;
     case 177:
     
     #line 242 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveBmp);
     
     #line default
     #line hidden
     return;
     case 178:
     
     #line 244 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitPrgw);
     
     #line default
     #line hidden
     return;
     case 179:
     
     #line 247 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAbout);
     
     #line default
     #line hidden
     return;
     case 180:
     this.ttyp_label = ((System.Windows.Controls.Label)(target));
     return;
     case 181:
     this.infolabel3 = ((System.Windows.Controls.Label)(target));
     return;
     case 182:
     this.label13 = ((System.Windows.Controls.Label)(target));
     return;
     case 183:
     this.infolabel4 = ((System.Windows.Controls.Label)(target));
     return;
     case 184:
     this.infolabel2 = ((System.Windows.Controls.Label)(target));
     return;
     case 185:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #4
0
        /// <summary>
        /// ContentProperty property changed handler.
        /// </summary>
        /// <param name="d">ButtonSpinner that changed its Content.</param>
        /// <param name="e">Event arguments.</param>
        private static void OnContentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ButtonSpinner source = d as ButtonSpinner;

            source.OnContentChanged(e.OldValue, e.NewValue);
        }
 /// <summary>
 /// Add a spinner to this controller's database
 /// </summary>
 /// <param name="spinner">The ButtonSpinner to add</param>
 /// <param name="minimum">The minimum value for the spinner</param>
 /// <param name="maximum">The maximum value for the spinner</param>
 /// <param name="initial">The initial value for the spinner</param>
 /// <returns>The spiner data (from which a value can be taken)</returns>
 public SpinnerData AddSpinner(ButtonSpinner spinner, int minimum, int maximum, int initial)
 {
     SpinnerData d = new SpinnerData(spinner, minimum, maximum, initial);
     _spinnerList.Add(d);
     return d;
 }
 /// <summary>
 /// Add a spinner to this controller's database with Min = 0, Max = 63, Default = 0
 /// </summary>
 /// <param name="spinner">The ButtonSpinner to add</param>
 /// <returns>The spinner data (from which a value can be taken)</returns>
 public SpinnerData AddSpinner(ButtonSpinner spinner)
 {
     SpinnerData d = new SpinnerData(spinner);
     _spinnerList.Add(d);
     return d;
 }