/*************************************************************************************************************************/ // PASSWORD FORMS /// <summary> /// show dialog for password for diagram unlock</summary> public string GetPassword(string subtitle = "") { string password = null; if (this.passwordForm == null) { this.passwordForm = new PasswordForm(this); } this.passwordForm.Text = Translations.password + " - " + subtitle; this.passwordForm.Clear(); this.passwordForm.ShowDialog(); if (!this.passwordForm.cancled) { password = this.passwordForm.GetPassword(); this.passwordForm.Clear(); } else { return(null); } this.passwordForm = null; return(password); }
/// <summary> /// show dialog for password for diagram unlock</summary> public string getPassword(string subtitle = "") { string password = null; if (this.passwordForm == null) { this.passwordForm = new PasswordForm(this); } this.passwordForm.Text = Translations.password + " - " + subtitle; this.passwordForm.Clear(); this.passwordForm.ShowDialog(); if (!this.passwordForm.cancled) { password = this.passwordForm.GetPassword(); this.passwordForm.Clear(); } this.passwordForm = null; return password; }