Add info bar if blocked elements present in Svg (#1620)

* Added logic to check for blocked elements

* Added unit tests

* Fix warnings from msi solution
This commit is contained in:
udit3333
2020-03-20 08:28:47 -07:00
committed by GitHub
parent 49868d8f7c
commit d420fad489
7 changed files with 251 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ using System.Xml.Linq;
using Common;
using Common.Utilities;
using PreviewHandlerCommon;
using SvgPreviewHandler.Utilities;
namespace SvgPreviewHandler
{
@@ -58,6 +59,13 @@ namespace SvgPreviewHandler
}
}
// Add a info bar on top of the Preview if any blocked element is present.
if (SvgPreviewHandlerHelper.CheckBlockedElements(svgData))
{
this.infoBarAdded = true;
this.AddTextBoxControl(Resource.BlockedElementInfoText);
}
this.AddBrowserControl(svgData);
this.Resize += this.FormResized;
base.DoPreview(dataSource);