/// <summary>
        /// Opens the connection to an Arduino board
        /// </summary>
        public void OpenArduinoConnection(frmStartup mainForm)
        {
            this.MainForm = mainForm;

            if (!arduinoBoard.IsOpen)
            {
                arduinoBoard.PortName = "COM10";
                arduinoBoard.Open();
                arduinoBoard.DataReceived += arduinoBoard_DataReceived;
                arduinoBoard.RtsEnable = true;
            }
            else
            {
                throw new InvalidOperationException("The Serial Port is already open!");
            }
        }
 public static void Main(string[] args)
 {
     frmStartup startup = new frmStartup();
 }