// Singleton constructor
 public static SerialPortMonitor Instance()
 {
     if (instance == null)
     {
         instance = new SerialPortMonitor();
     }
     return instance;
 }
        public ControllerForm()
        {
            InitializeComponent();

            // warm up serial port singleton
            monitor = SerialPortMonitor.Instance();

            // configure serial port
            monitor.Configure(9600, 8, System.IO.Ports.StopBits.One, System.IO.Ports.Parity.None);

            // wire up monitor events
            monitor.OnUpdateStatus += new SerialPortMonitor.StatusUpdateHandler(MonitorEvent_UpdateStatus);
            monitor.OnNewData += new SerialPortMonitor.NewDataHandler(MonitorEvent_NewDataRecieved);
        }