private void OpenPasswordBuilder( ) { var tmpPasswordBuilder = new formPasswordBuilder( ); var tmpDialogResult = tmpPasswordBuilder.ShowDialog( ); if (tmpDialogResult == DialogResult.OK) { // } tmpPasswordBuilder.Dispose( ); }
private void buttonBuildPassword_Click(object sender, System.EventArgs args) { var tmpPasswordBuilder = new formPasswordBuilder(); var tmpDialogResult = tmpPasswordBuilder.ShowDialog(); if (tmpDialogResult == DialogResult.OK) { this.textRepeatPassword.Text = this.textNewPassword.Text = tmpPasswordBuilder.PasswordString; } tmpPasswordBuilder.Dispose(); }