WIP: clean-up + icons

This commit is contained in:
Ray committed 2021-09-14 20:36:04 +01:00
1 parent c770265283
commit c00d42a7d8
20 files changed
+1223 -642

No files matched your search

+25 -9
View File
@@ -15,6 +15,8 @@ namespace bzit.bomg.Models
public string TreeviewPath { get; set; }
public string Notes { get; set; }
//public BookmarkItemModel ToModel()
//{
// return new BookmarkItemModel()
@@ -30,19 +32,33 @@ namespace bzit.bomg.Models
public new string ToString()
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("Name = ");
sb.AppendLine(this.SiteName ?? string.Empty);
sb.AppendLine(string.Empty);
sb.AppendLine("Address = ");
sb.AppendLine(this.SiteAddress ?? string.Empty);
sb.AppendLine(string.Empty);
if (!string.IsNullOrWhiteSpace(this.SiteName))
{
sb.AppendLine("Name");
sb.AppendLine(this.SiteName + Environment.NewLine);
}
sb.AppendLine("Description = ");
sb.AppendLine(this.SiteDescription ?? string.Empty);
sb.AppendLine(string.Empty);
if (!string.IsNullOrWhiteSpace(this.SiteAddress))
{
sb.AppendLine("Address");
sb.AppendLine(this.SiteAddress + Environment.NewLine);
}
if (!string.IsNullOrWhiteSpace(this.SiteDescription))
{
sb.AppendLine("Description");
sb.AppendLine(this.SiteDescription + Environment.NewLine);
}
if (!string.IsNullOrWhiteSpace(this.Notes))
{
sb.AppendLine("Notes");
sb.AppendLine(this.Notes + Environment.NewLine);
}
return sb.ToString();
}
}
}