private void Button_Click(object sender, RoutedEventArgs e) {//load nep6 var prikey = Dialog_Import_Nep6.ShowDialog(this); if (prikey != null) { AddSimpleKey(prikey); } }
public static byte[] ShowDialog(Window owner) { var d = new Dialog_Import_Nep6(); d.Owner = owner; if (d.ShowDialog() == true) { return(d.prikey); } return(null); }