예제 #1
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration()
        {
            VsObjectDetectionConfiguration cfg = new VsObjectDetectionConfiguration();

            cfg.SelectedObject = this.comboBox1.SelectedIndex;

            return cfg;
        }
        VsICoreAnalyzerConfiguration VsICoreAnalyzerPage.GetConfiguration()
        {
            VsObjectDetectionConfiguration cfg = new VsObjectDetectionConfiguration();

            cfg.SelectedObject = this.comboBox1.SelectedIndex;

            return(cfg);
        }
예제 #3
0
        void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config)
        {
            VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("SelectedObject", cfg.SelectedObject.ToString());
            }
        }
        void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config)
        {
            VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config;

            if (cfg != null)
            {
                this.comboBox1.SelectedIndex = cfg.SelectedObject;
            }
        }
예제 #5
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(Hashtable reader)
        {
            VsObjectDetectionConfiguration config = new VsObjectDetectionConfiguration();

            try
            {
                config.LoadConfiguration(reader);
            }
            catch (Exception)
            {
            }
            return(config);
        }
예제 #6
0
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(System.Xml.XmlTextReader reader)
        {
            VsObjectDetectionConfiguration config = new VsObjectDetectionConfiguration();

            try
            {
                config.SelectedObject = int.Parse(reader.GetAttribute("SelectedObject"));
            }
            catch (Exception)
            {
            }
            return(config);
        }
예제 #7
0
        VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config)
        {
            VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config;

            if (cfg != null)
            {
                VsObjectDetection analyser = new VsObjectDetection(syncTimer);

                analyser.AnalyzerConfiguration = cfg.GetConfiguration();

                return((VsObjectDetection)analyser);
            }
            return(null);
        }
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(Hashtable reader)
        {
            VsObjectDetectionConfiguration config = new VsObjectDetectionConfiguration();

            try
            {
                config.LoadConfiguration(reader);
            }
            catch (Exception)
            {
            }
            return config;
        }
        VsICoreAnalyzerConfiguration VsICoreAnalyzerDescription.LoadConfiguration(System.Xml.XmlTextReader reader)
        {
            VsObjectDetectionConfiguration config = new VsObjectDetectionConfiguration();

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