Пример #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;
        }