コード例 #1
0
        async private void generate_Clicked(object sender, EventArgs e)
        {
            passwordPolicy.numLowerCase = int.Parse(lower.Text);
            passwordPolicy.numUpperCase = int.Parse(upper.Text);
            passwordPolicy.numDigits    = int.Parse(digits.Text);
            passwordPolicy.numSymbols   = int.Parse(symbols.Text);
            string pass = passwordPolicy.GenerateRandomPassword();

            generatedPass.Text = pass;
            await Clipboard.SetTextAsync(pass);
        }