public static void Main() { // initialize display buffer _display = new Bitmap(Bitmap.MaxWidth, Bitmap.MaxHeight); // sample "hello world" code _display.Clear(); Font fontNinaB = Resources.GetFont(Resources.FontResources.NinaB); _display.DrawText("Waiting for data", fontNinaB, Color.White, 10, 64); _display.Flush(); IChannel channel = new CSVChannel(); _connection = new Connection("COM1", channel); _connection.OnReceived += _connection_OnReceived; _connection.Open(); // go to sleep; all further code should be timer-driven or event-driven Thread.Sleep(Timeout.Infinite); }