Exemplo n.º 1
0
        private void btn_encrypt_Click(object sender, EventArgs e)
        {
            // Switch current form with encrypt form
            frm_encrypt encrypt = new frm_encrypt(this);

            MiscUtils.SetNewFormLocation(this, encrypt);
            encrypt.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        public frm_getPass(Form form)
        {
            // Initialize components
            InitializeComponent();

            // Change form information according to encrypting/decrypting scenario
            if (form.Name == "frm_encrypt")
            {
                encryptMainForm          = form as frm_encrypt;
                this.Text                = "Choose Password";
                this.lbl_choosePass.Text = "Choose a 3 word password:"******"Enter Password";
                this.lbl_choosePass.Text = "Enter the 3 word password:"******"Word must be at least 1 character long");
            err_word2.SetError(txt_word2, "Word must be at least 1 character long");
            err_word3.SetError(txt_word3, "Word must be at least 1 character long");
        }