static void Main(string[] args) { try { var gWin = new Window(); gWin.Run(60.0, 60.0); gWin.Disconnect(); } catch (Exception e) // 1 { Console.WriteLine("Error: \n" + e.Message); //Console.WriteLine(e.StackTrace); } }
private static void Main() { using var window = new Window(); window.Run(); }