private void buttonOK_Click(object sender, EventArgs e) { if (_lastGeneratedKS == null) { return; } Response = new GenerateAndroidKeystoreResponse() { Keystore = _lastGeneratedKS.KeystorePath, Password = _lastGeneratedKS.Password, KeyAlias = _lastGeneratedKS.KeyAlias, KeyPassword = _lastGeneratedKS.KeyPassword, }; DialogResult = DialogResult.OK; Close(); }
private void buttonAndroidGenerateKeystore_Click(object sender, EventArgs e) { GenerateAndroidKeystore dialog = new GenerateAndroidKeystore(); if (dialog.ShowDialog() == DialogResult.OK && dialog.Response != null) { GenerateAndroidKeystoreResponse r = dialog.Response; // returned from OK, keystore info was updated textBoxAndKeystoreFile.Text = r.Keystore; textBoxAndKeystorePassword.Text = r.Password; textBoxAndKeystoreKeyAlias.Text = r.KeyAlias; textBoxAndKeystoreKeyPassword.Text = r.KeyPassword; _settings.AndroidKeystoreFile = textBoxAndKeystoreFile.Text; _settings.AndroidKeystorePassword = textBoxAndKeystorePassword.Text; _settings.AndroidKeystoreKeyAlias = textBoxAndKeystoreKeyAlias.Text; _settings.AndroidKeystoreKeyPassword = textBoxAndKeystoreKeyPassword.Text; } dialog.Dispose(); }
public GenerateAndroidKeystore() { InitializeComponent(); buttonOK.Enabled = false; _ks = new AndroidKeystoreData(); _lastGeneratedKS = null; Response = null; _TbProp = new Dictionary <TextBox, PropertyInfo> { { textboxKeystorePath, typeof(AndroidKeystoreData).GetProperty("KeystorePath") }, { textboxKeystorePassword, typeof(AndroidKeystoreData).GetProperty("Password") }, { textboxKeystoreKeyAlias, typeof(AndroidKeystoreData).GetProperty("KeyAlias") }, { textboxKeystoreKeyPassword, typeof(AndroidKeystoreData).GetProperty("KeyPassword") }, { textboxKeystoreCertCN, typeof(AndroidKeystoreData).GetProperty("FirstAndLastName") }, { textboxKeystoreCertOU, typeof(AndroidKeystoreData).GetProperty("OrganizationalUnit") }, { textboxKeystoreCertO, typeof(AndroidKeystoreData).GetProperty("OrganizationName") }, { textboxKeystoreCertL, typeof(AndroidKeystoreData).GetProperty("CityOrLocality") }, { textboxKeystoreCertST, typeof(AndroidKeystoreData).GetProperty("StateOrProvince") }, { textboxKeystoreCertC, typeof(AndroidKeystoreData).GetProperty("CountryCode") } }; }