Example #1
0
        private void btnGenerate_Click(object sender, EventArgs e)
        {
            PwdGenerator pwdGenerator = new PwdGenerator();

            try
            {
                this.txtPassword.Text = pwdGenerator.GeneratePassword(this.txtFileName.Text, this.txtUtf8.Checked);
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                MessageBox.Show(exception.Message, "Errore", MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
        }
Example #2
0
        public PwdGeneratorViewModel()
        {
            generator = new PwdGenerator();

            GenerateCommand = new MvxCommand <PwdGenParams>((s) => Generate(s));
        }