Exemple #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            crypt cp = new crypt(@"c:\key\");

            OpenFileDialog of = new OpenFileDialog();
            DialogResult   dr = of.ShowDialog();

            if (dr == DialogResult.OK)
            {
                //    cp.decryptFile(of.FileName);
            }
        }
Exemple #2
0
        public CryptGui()
        {
            InitializeComponent();

            try
            {
                cp = new crypt(lblSti.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
Exemple #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            var result = folderBrowserDialog1.ShowDialog();

            if (result.ToString().Equals("OK"))
            {
                lblSti.Text = folderBrowserDialog1.SelectedPath.ToString();
                try
                {
                    cp = new crypt(lblSti.Text);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message.ToString());
                }
            }
        }