private void WindowClosed(object sender, EventArgs e) { myFilght.Disconnect(); App.Current.Shutdown(); }