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