public bool CreatePassword() { var form = new CreatePasswordForm(); DialogResult result = form.ShowDialog(); if ( result == DialogResult.Cancel ) { return false; } if ( result == DialogResult.OK ) { return manager.AddPassword( null, form.Password ); } return false; }
public bool CreatePassword() { var form = new CreatePasswordForm(); DialogResult result = form.ShowDialog(); if (result == DialogResult.Cancel) { return(false); } if (result == DialogResult.OK) { return(manager.AddPassword(null, form.Password)); } return(false); }