示例#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);
            }
        }
示例#2
0
        public CryptGui()
        {
            InitializeComponent();

            try
            {
                cp = new crypt(lblSti.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
示例#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());
                }
            }
        }