public void SendCmdResult(bool result, string cmdName)
{
if (InvokeRequired)
{
try
{
Invoke((Delegate)new AttrDataItemForm.SendCmdResultDelegate(SendCmdResult), result, cmdName);
}
catch { }
}
else
{
if (result)
return;
string msg = "Send Command Failed\nMessage Name = " + cmdName + "\n";
if (DisplayMsgCallback != null)
DisplayMsgCallback(SharedAppObjs.MsgType.Error, msg);
msgBox.UserMsgBox((Form)this, MsgBox.MsgTypes.Error, msg);
RestoreFormInput();
}
}