public RosoutDebug() { InitializeComponent(); Loaded += (sender, args) => { if (System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv") { return; } ROS.WaitForMaster(); nh = new NodeHandle(); Init(); }; }