/// <summary> /// This function should only be called from child class /// Note : this function includes first ',' /// </summary> /// <returns></returns> public virtual string ForgeRawLine() { if (ToolTip != null) { return("," + StringEscaper.DoubleQuote($"__{ToolTip}")); } return(string.Empty); }
public string ForgeToolTip() { if (ToolTip != null) { return("," + StringEscaper.DoubleQuote($"__{ToolTip}")); } return(string.Empty); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); b.Append(","); b.Append(StringEscaper.DoubleQuote(Url)); b.Append(base.ForgeRawLine()); return(b.ToString()); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); b.Append(","); b.Append(StringEscaper.DoubleQuote(Value)); b.Append(ForgeToolTip()); return(b.ToString()); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); b.Append(","); b.Append(StringEscaper.DoubleQuote(SectionName)); b.Append(","); b.Append(Picture == null ? "0" : StringEscaper.DoubleQuote(Picture)); b.Append(HideProgress ? ",True" : ",False"); b.Append(base.ForgeRawLine()); return(b.ToString()); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); if (!string.IsNullOrWhiteSpace(Url)) { b.Append(","); b.Append(StringEscaper.DoubleQuote(Url)); } b.Append(base.ForgeRawLine()); return(b.ToString()); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); b.Append(Value ? ",True" : ",False"); if (SectionName != null) { b.Append(",_"); b.Append(StringEscaper.DoubleQuote(SectionName)); b.Append("_"); b.Append(HideProgress ? ",True" : ",False"); } b.Append(base.ForgeRawLine()); return(b.ToString()); }
public override string ForgeRawLine() { StringBuilder b = new StringBuilder(); foreach (string item in Items) { b.Append(","); b.Append(StringEscaper.DoubleQuote(item)); } if (SectionName != null) { b.Append(",_"); b.Append(StringEscaper.DoubleQuote(SectionName)); b.Append("_"); b.Append(HideProgress ? ",True" : ",False"); } b.Append(ForgeToolTip()); return(b.ToString()); }
public string ForgeRawLine(bool includeKey) { StringBuilder b = new StringBuilder(); if (includeKey) { b.Append(Key); b.Append("="); } b.Append(StringEscaper.DoubleQuote(Text)); b.Append(","); b.Append(Visibility ? "1," : "0,"); b.Append((int)Type); b.Append(","); b.Append(X); b.Append(","); b.Append(Y); b.Append(","); b.Append(Width); b.Append(","); b.Append(Height); b.Append(Info.ForgeRawLine()); return(b.ToString()); }