コード例 #1
0
        /// <summary>
        /// Gets the password which has been entered into the password box.
        /// </summary>
        /// <param name="stringBuilder">A <see cref="StringBuilder"/> to populate with the password which has been entered into the password box.</param>
        public void GetPassword(StringBuilder stringBuilder)
        {
            Contract.Require(stringBuilder, nameof(stringBuilder));

            if (PART_Editor != null)
            {
                PART_Editor.GetPassword(stringBuilder);
            }
        }
コード例 #2
0
        /// <summary>
        /// Gets the password which has been entered into the password box.
        /// </summary>
        /// <returns>A string containing the password which has been entered into the password box.</returns>
        public String GetPassword()
        {
            if (PART_Editor != null)
            {
                return(PART_Editor.GetPassword());
            }

            return(String.Empty);
        }