private void MaintainUnattendedMeasSetupClick(object sender, RoutedEventArgs e) { IDDSetupUnattendedMeas f = new IDDSetupUnattendedMeas(Integ.GetCurrentAcquireDetector()); f.ShowDialog(); }