private void button2_Click(object sender, EventArgs e) { lbl_status.Text = ""; RunTool r = null; r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /d"); r.ExitCodeReceived += new RunTool.exitCodeReceived(r_ExitCodeReceived); r.RunAndGetOutput2(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (lstv.SelectedItems.Count == 0) { return; } int sel_index = lstv.SelectedItems[0].Index; string drive_letter = General.Connections[sel_index].drive_letter; lbl_status.Text = ""; RunTool r = null; r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /d " + drive_letter); r.ExitCodeReceived += new RunTool.exitCodeReceived(r_ExitCodeReceived); r.RunAndGetOutput2(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (lstv.SelectedItems.Count == 0) return; int sel_index = lstv.SelectedItems[0].Index; string drive_letter = General.Connections[sel_index].drive_letter; lbl_status.Text = ""; RunTool r = null; r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /d " + drive_letter); r.ExitCodeReceived += new RunTool.exitCodeReceived(r_ExitCodeReceived); r.RunAndGetOutput2(); }