BTool.AttrDataItemForm.SendCmdResult C# (CSharp) Method

SendCmdResult() public method

public SendCmdResult ( bool result, string cmdName ) : void
result bool
cmdName string
return void
        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();
            }
        }