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

            cfg.Threshold = this.trackBar1.Value;

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

            cfg.Threshold = this.trackBar1.Value;

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

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

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

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

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

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

            try
            {
                config.Threshold = int.Parse(reader.GetAttribute("Threshold"));
            }
            catch (Exception)
            {
            }
            return config;
        }