// done
        private void RobotSettings_OnTextBoxEnterPressed(object sender, SendingTextBoxEventArgs e)
        {
            if (sender is ExtendedTexBbox source)
            {
                try
                {
                    var message = new SendMessage
                    {
                        CommandType = source.ECommand,
                        Node        = source.ENode,
                        Payload     = TypeCaster.Cast(e.Value, source.EType)
                    };

                    TrySend(message, source.EPriority);
                }
                catch (FormatException ex)
                {
                    Logger.Error(ex, "Error while parsing input");
                }
                catch (OverflowException ex)
                {
                    Logger.Error(ex, "Error while parsing input");
                }
            }
        }
 private void OnTextBoxEnterPressed(object sender, SendingTextBoxEventArgs e)
 {
     TextBoxEnterPressed?.Invoke(sender, e);
 }