Exemple #1
0
        private void ChkHistory_CheckedChanged(object sender, EventArgs e)
        {
            if (IsLoaded)
            {
                if (ChkHistory.Checked)
                {
                    Sav.SetValue("Settings", "History", "1");
                    SplitHistory.Show();
                    LoadHistory();
                    MsgLbl.Hide();
                }
                else
                {
                    BluMessage Msg = new BluMessage("Are you sure want to Delete the History?", BluMessage.MessageBoxIcon.Warning, true,false);
                    if (Msg.ShowDialog() == DialogResult.No)
                    {
                        ChkHistory.Checked = true;

                    }
                    else
                    {
                        Sav.SetValue("Settings", "History", "0");
                        BEncClear_Click(null, null);
                        BDecClear_Click(null, null);
                        LoadHistory();
                        SplitHistory.Hide();
                        MsgLbl.Show();
                    }

                }
            }
        }
        private void CmdDecrypt_Click(object sender, EventArgs e)
        {
            if (TxtPassword_1.Text.Length < 6)
            {
                BluMessage Msg = new BluMessage("Password should contain more than 6 characters", BluMessage.MessageBoxIcon.Error, false,false);
                Msg.ShowDialog();
            }
            else
            {
                MainWindow.Instance.StartProcessing(SrcFileList, TxtPassword_1.Text, ProcessPanel.Operation.Decrypt, ChkOverWrite.Checked);

                TxtPassword_1.SelectAll();
            }
        }
        private void CmdOpen_Click(object sender, EventArgs e)
        {
            if (TxtPassword_1.Text.Length < 6)
            {
                BluMessage Msg = new BluMessage("Password should contain more than 6 characters", BluMessage.MessageBoxIcon.Error, false,false);
                Msg.ShowDialog();
            }
            else
            {
                MainWindow.Instance.StartProcessing(SrcFileList, TxtPassword_1.Text, ProcessPanel.Operation.Decrypt, ChkOverWrite.Checked);

                if (IsOpen)
                {
                    System.Diagnostics.Process.Start("explorer.exe", SrcFileList[0].Replace(".enf", string.Empty));
                }

                TxtPassword_1.SelectAll();
            }
        }
Exemple #4
0
        private void Cmd_Start_Click(object sender, EventArgs e)
        {
            RemoveDuplicates();//Removing Duplicates
            UpdateFileList();//Updating the File list

            if (FileList.Items.Count == 0)
            {
                BluMessage Msg = new BluMessage("No files added!", BluMessage.MessageBoxIcon.Error, false, false);
                Msg.ShowDialog();
            }
            else
            {
                if (Current == Mode.Encryption)
                {
                    AskPassword Ap = new AskPassword(MainWindow.Operation.Encrypt, SrcFileList);
                    Ap.ShowDialog();
                }
                else if (Current == Mode.Decryption)
                {
                    AskPassword Ap = new AskPassword(MainWindow.Operation.Decrypt, SrcFileList);
                    Ap.ShowDialog();
                }
            }
        }
 private void ChkOverWrite_CheckedChanged(object sender, EventArgs e)
 {
     if (ChkOverWrite.Checked)
     {
         BluMessage Msg = new BluMessage("Are you sure want to Delete the Orignal Files?", BluMessage.MessageBoxIcon.Warning, true,false);
         if (Msg.ShowDialog() == DialogResult.No)
         {
             ChkOverWrite.Checked = false;
         }
         else
         {
             ChkOverWrite.Checked = true;
         }
     }
 }
 public bool ShowModalDialog()
 {
     BluMessage Msg = new BluMessage("File Already Exist, want to replace?", BluMessage.MessageBoxIcon.Question, true,true);
     if (Msg.ShowDialog() == DialogResult.Yes)
     {
         if (DoForAll)
         {
             DoYesForAll = true;
         }
         return true;
     }
     else
     {
         if (DoForAll)
         {
             DoYesForAll = false;
         }
         return false;
     }
 }