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