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

@ -87,11 +87,14 @@ private void UpdateWindowInfo()
private void AddInfo(string name, string value)
{
rtbInfo.SetFontBold();
rtbInfo.AppendLine(name);
rtbInfo.SetFontRegular();
rtbInfo.AppendLine(value);
rtbInfo.AppendLine();
if (!string.IsNullOrEmpty(value))
{
rtbInfo.SetFontBold();
rtbInfo.AppendLine(name);
rtbInfo.SetFontRegular();
rtbInfo.AppendLine(value);
rtbInfo.AppendLine();
}
}
private void btnInspectWindow_Click(object sender, EventArgs e)