static void Main(string[] args) { ConsoleCancelEventHandler Closed = new ConsoleCancelEventHandler(ClosingEvent); Console.InputEncoding = Encoding.UTF8; Console.OutputEncoding = Encoding.UTF8; Console.Clear(); IIP_TESTER.Connect(); IIP_TESTER.OpenExcel(); Console.ReadLine(); }
static void ClosingEvent(object sender, ConsoleCancelEventArgs e) { IIP_TESTER.Disconnect(); }