VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration() { VsEllipseDetectionConfiguration cfg = new VsEllipseDetectionConfiguration(); cfg.Threshold = this.trackBar1.Value; return(cfg); }
VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration() { VsEllipseDetectionConfiguration cfg = new VsEllipseDetectionConfiguration(); cfg.Threshold = this.trackBar1.Value; return cfg; }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsEllipseDetectionConfiguration cfg = (VsEllipseDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("Threshold", cfg.Threshold.ToString()); } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsEllipseDetectionConfiguration cfg = (VsEllipseDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.Threshold; } }
VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(Hashtable reader) { VsEllipseDetectionConfiguration config = new VsEllipseDetectionConfiguration(); try { config.LoadConfiguration(reader); } catch (Exception) { } return(config); }
VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(System.Xml.XmlTextReader reader) { VsEllipseDetectionConfiguration config = new VsEllipseDetectionConfiguration(); try { config.Threshold = int.Parse(reader.GetAttribute("Threshold")); } catch (Exception) { } return(config); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsEllipseDetectionConfiguration cfg = (VsEllipseDetectionConfiguration)config; if (cfg != null) { VsEllipseDetection analyser = new VsEllipseDetection(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return((VsEllipseDetection)analyser); } return(null); }
VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(Hashtable reader) { VsEllipseDetectionConfiguration config = new VsEllipseDetectionConfiguration(); try { config.LoadConfiguration(reader); } catch (Exception) { } return config; }
VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(System.Xml.XmlTextReader reader) { VsEllipseDetectionConfiguration config = new VsEllipseDetectionConfiguration(); try { config.Threshold = int.Parse(reader.GetAttribute("Threshold")); } catch (Exception) { } return config; }