Example #1
0
        private void StartProcess_button_Click(object sender, EventArgs e)
        {
            ChangeAllEnabled(false);
            chunkUpdate_progressBar.Value = 0;

            if (mode_comboBox.SelectedIndex == 0)
            {
                Task.Run(() => _secureFile.Encrypt(_filePath, Path.GetDirectoryName(_filePath), deleteOrig_checkBox.Checked));
            }
            else if (mode_comboBox.SelectedIndex == 1)
            {
                Task.Run(() => _secureFile.Decrypt(_filePath, Path.GetDirectoryName(_filePath), deleteOrig_checkBox.Checked));
            }
        }