If value is empty then don't add it

This commit is contained in:
Jaex 2021-01-16 19:24:55 +03:00
parent a74b669780
commit 15058b1be9

View file

@ -86,6 +86,8 @@ private void UpdateWindowInfo()
}
private void AddInfo(string name, string value)
{
if (!string.IsNullOrEmpty(value))
{
rtbInfo.SetFontBold();
rtbInfo.AppendLine(name);
@ -93,6 +95,7 @@ private void AddInfo(string name, string value)
rtbInfo.AppendLine(value);
rtbInfo.AppendLine();
}
}
private void btnInspectWindow_Click(object sender, EventArgs e)
{