private void MaintainDetectorAddEditClick(object sender, RoutedEventArgs e) { IDDDetectorEdit f = new IDDDetectorEdit(); f.ShowDialog(); }