private void btnNewScan_Click(object sender, RoutedEventArgs e) { ScanningForm s = new ScanningForm(); s.Show(); s.Close(); }