private void GenerateKeyFile(object sender, RoutedEventArgs e) { if (AsymmetricEncryption.GenerateRegisterFile()) { MessageBox.Show( "Create Register File Successfully! \nCopy and send the *.pem file to the Service Provider!", "Congratulation!"); } else { MessageBox.Show("Please add your user name to the config file, remove entry of \"PublicKey\"", "Failed, Check and Do Again"); } }