private void Mainwindow_Click(object sender, RoutedEventArgs e) { //missing-disconnect the graph of anomalies vm.DisconnectDetectRegression(); vm.DisconnectPlotModel(); //FlyWindow main = new FlyWindow(vm, vmJoy, vmDash); //main.Show(); this.Close(); }