Print Library, Svg Library, Utils Library, XYPlots

This commit is contained in:
2026-07-24 13:36:46 -04:00
parent 06c3136566
commit f67d37801a
68 changed files with 12173 additions and 16618 deletions
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Collections;
using System.IO;
using System.Text.RegularExpressions;
@@ -20,12 +18,9 @@ namespace vlnObjectLibrary
{
/* See if I need to do anything */
}
#region XML Serialization
public void WriteXml(XmlWriter w)
{
WriteXml(w, true);
}
public void WriteXml(XmlWriter w,bool bSaveParent)
#region XML Serialization
public void WriteXml(XmlWriter w) => WriteXml(w, true);
public void WriteXml(XmlWriter w,bool bSaveParent)
{
w.WriteAttributeString("title", Title);
w.WriteAttributeString("path", Path);
@@ -74,13 +69,10 @@ namespace vlnObjectLibrary
xr.Close();
}
public XmlSchema GetSchema()
{
return (null);
}
#endregion
#region Constructors
public vlnObject(vlnObject parent, string type, string title, string path)
public XmlSchema GetSchema() => (null);
#endregion
#region Constructors
public vlnObject(vlnObject parent, string type, string title, string path)
{
m_Parent = parent;
m_Type = type;
@@ -148,11 +140,8 @@ namespace vlnObjectLibrary
vlnObject b = new vlnObject(this, type, title, path);
return b;
}
public void AddProp(string name, string value)
{
PropArray[name.ToUpper()] = value;
}
public void AddProp(XmlReader xr)
public void AddProp(string name, string value) => PropArray[name.ToUpper()] = value;
public void AddProp(XmlReader xr)
{
SkipToElement(xr);
string sName = null;
@@ -182,11 +171,8 @@ namespace vlnObjectLibrary
m_Children = value;
}
}
public void LoadChildren(string sXml)
{
LoadChildren(new XmlTextReader(new StringReader(sXml)));
}
public void LoadChildren(XmlReader xr)
public void LoadChildren(string sXml) => LoadChildren(new XmlTextReader(new StringReader(sXml)));
public void LoadChildren(XmlReader xr)
{
m_Children = new List<vlnObject>();
SkipToElement(xr);
@@ -212,8 +198,6 @@ namespace vlnObjectLibrary
}
public string ProcessString(string s)
{
//string retval=s;
//string retval = Regex.Replace(s, "{[.]*}", new MatchEvaluator(ReplaceKey));
string retval = Regex.Replace(s, "{{.*?}}", new MatchEvaluator(ReplaceRow));
retval = Regex.Replace(retval, "{.*?}", new MatchEvaluator(ReplaceDrv));
return retval;