コード例 #1
0
ファイル: frm_prompt.cs プロジェクト: alipianu/Imgrypt
        private void btn_decrypt_Click(object sender, EventArgs e)
        {
            // Switch current form with decrypt form
            frm_decrypt decrypt = new frm_decrypt(this);

            MiscUtils.SetNewFormLocation(this, decrypt);
            decrypt.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: frm_getPass.cs プロジェクト: alipianu/Imgrypt
        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");
        }