void SetUIWarning(string text)
{
if (InvokeRequired)
Invoke(new Action(() => SetUIWarning(text)));
else
{
pictureBox1.Visible = true;
warningLabel.Text = text;
warningLabel.Visible = true;
ResetLayout();
}
}