public void WriteXML(XmlTextWriter writer)
 {
     writer.WriteAttributeString(TemplateNameParm, TemplateName);
     writer.WriteAttributeString(AutoStubParm, AutoStub.ToString());
     writer.WriteAttributeString(StubClassParm, StubClass.ToString());
     writer.WriteAttributeString(TemplateAlternateNamesYNParm, HasAlternateNames.ToString());
     writer.WriteAttributeString(TemplateAlternateNamesParm, AlternateNames);
     writer.WriteAttributeString(TemplateImportanceParm, ImportanceSetting.ToString());
     writer.WriteAttributeString(TemplateAutoStubYNParm, AutoStubYN.ToString());
     writer.WriteAttributeString(conSkipRegexYN, SkipRegexYN.ToString());
     writer.WriteAttributeString(conSkipRegex, SkipRegex);
 }
        public void WriteXML(XmlTextWriter writer)
        {
            foreach (ListViewItem lvi in ListView1.Items)
            {
                TemplateParameters tp = (TemplateParameters)lvi.Tag;
                writer.WriteAttributeString(Prefix + tp.StorageKey, lvi.Checked.ToString());
            }

            writer.WriteAttributeString(Prefix + StubClassParm, StubClass.ToString());

            if (AutoStubCheckBox.Enabled)
            {
                writer.WriteAttributeString(Prefix + AutoStubParm, AutoStub.ToString());
            }
        }
Example #3
0
        public void WriteXML(XmlTextWriter Writer)
        {
            var _with1 = Writer;

            foreach (ListViewItem lvi in ListView1.Items)
            {
                TemplateParameters tp = (TemplateParameters)lvi.Tag;
                _with1.WriteAttributeString(Prefix + tp.StorageKey, lvi.Checked.ToString());
            }

            _with1.WriteAttributeString(Prefix + conStubClassParm, StubClass.ToString());

            if (AutoStubCheckBox.Enabled)
            {
                _with1.WriteAttributeString(Prefix + conAutoStubParm, AutoStub.ToString());
            }
        }