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); }
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; } }
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); }
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; }