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