private void InitialDataSelectorClick(object sender, RoutedEventArgs e) { IDDRestoreInitialData d = new IDDRestoreInitialData(); // all processing occurs in the OK handler d.ShowDialog(); }