コード例 #1
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration()
        {
            VsLipDetectionConfiguration cfg = new VsLipDetectionConfiguration();

            cfg.Threshold = this.trackBar1.Value;

            return(cfg);
        }
コード例 #2
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration()
        {
            VsLipDetectionConfiguration cfg = new VsLipDetectionConfiguration();

            cfg.Threshold = this.trackBar1.Value;

            return cfg;
        }
コード例 #3
0
        void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config)
        {
            VsLipDetectionConfiguration cfg = (VsLipDetectionConfiguration)config;

            if (cfg != null)
            {
                this.trackBar1.Value = cfg.Threshold;
            }
        }
コード例 #4
0
        void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config)
        {
            VsLipDetectionConfiguration cfg = (VsLipDetectionConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("Threshold", cfg.Threshold.ToString());
            }
        }
コード例 #5
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(Hashtable reader)
        {
            VsLipDetectionConfiguration config = new VsLipDetectionConfiguration();

            try
            {
                config.LoadConfiguration(reader);
            }
            catch (Exception)
            {
            }
            return(config);
        }
コード例 #6
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(System.Xml.XmlTextReader reader)
        {
            VsLipDetectionConfiguration config = new VsLipDetectionConfiguration();

            try
            {
                config.Threshold = int.Parse(reader.GetAttribute("Threshold"));
            }
            catch (Exception)
            {
            }
            return(config);
        }
コード例 #7
0
        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);
        }