Beispiel #1
0
        private void load_image(string file, string drive_letter = null, bool show_explorer = false)
        {
            lbl_status.Text = "";

            if (file.StartsWith("{here}"))
            {
                file = file.Replace("{here}", Application.StartupPath);
            }

            if (!File.Exists(file))
            {
                General.Mes("file doesnt exist", MessageBoxIcon.Error);
                return;
            }


            RunTool r = null;

            if (String.IsNullOrEmpty(drive_letter))
            {
                r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /v " + (show_explorer ? " /explore " : "") + " \"" + file + "\"");
            }
            else
            {
                r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /v " + (show_explorer ? " /explore " : "") + " \"" + file + "\" /l " + drive_letter);
            }
            r.ExitCodeReceived += new RunTool.exitCodeReceived(r_ExitCodeReceived);
            r.RunAndGetOutput2();
        }
Beispiel #2
0
        private void uiQuickRunToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RunTool lRunForm = new RunTool();

            lRunForm.Location = CalculatePosition(lRunForm);

            lRunForm.Show();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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 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 load_image(string file, string drive_letter = null, bool show_explorer=false)
        {
            lbl_status.Text = "";

            if (file.StartsWith("{here}"))
                file = file.Replace("{here}", Application.StartupPath);

            if (!File.Exists(file))
            {
                General.Mes("file doesnt exist", MessageBoxIcon.Error);
                return;
            }

            RunTool r = null;

            if (String.IsNullOrEmpty(drive_letter))
                r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /v " + (show_explorer ? " /explore " : "") + " \"" + file + "\"");
            else
                r = new RunTool(Application.StartupPath + "\\TrueCrypt.exe", " /q /v " + (show_explorer ? " /explore " : "") + " \"" + file + "\" /l " + drive_letter);
            r.ExitCodeReceived += new RunTool.exitCodeReceived(r_ExitCodeReceived);
            r.RunAndGetOutput2();
        }