public DeviceArm() : base() { string cmd; driver = new ServoDriver(); driver.Run(); while (true) { cmd = Console.ReadLine(); if (cmd.Equals("x")) { break; } if (cmd.Equals("r")) { com.Send(ComData.RequestReset()); continue; } com.Send(new ComData(cmd)); } EventBulletin.GetInstance().Notify(EventBulletin.Event.CLOSE, null, null); Environment.Exit(0); }