Exemplo n.º 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();
                    }

                }
            }
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }
Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 5
0
 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;
         }
     }
 }
Exemplo n.º 6
0
 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;
     }
 }