Ejemplo n.º 1
0
        public ProcessPanel(List<string> SrcFiles, string Passwrd, Operation Modes,bool Overwrite)
        {
            InitializeComponent();
            Ins = this;
            this.SrcFileList = SrcFiles;
            this.Password = Passwrd;
            this.Key = CreateKey(Password);
            this.IV = CreateIV(Password);
            this.Mode = Modes;
            this.IsOverWrite = Overwrite;
            //PrgOverall.MaximumValue = SrcFileList.Count * 100;

            if (Mode == Operation.Encrypt)
            {
                PicBack.BackgroundImage = Chiave.Properties.Resources.Pic_Lock;
                PrgCurrent.ForeColor = Color.Firebrick;
                //PrgOverall.ForeColor = Color.Firebrick;

            }
            else if (Mode == Operation.Decrypt)
            {
                PicBack.BackgroundImage = Chiave.Properties.Resources.Pic_UnLock;
                PrgCurrent.ForeColor = Color.ForestGreen;
                //PrgOverall.ForeColor = Color.ForestGreen;
            }
        }
Ejemplo n.º 2
0
 public void StartProcessing(List<string> SrcFiles, string Passwrd, Chiave.ProcessPanel.Operation Modes, bool Overwrite)
 {
     if (Modes == Chiave.ProcessPanel.Operation.Encrypt)
     {
         ProcessPanel PP = new ProcessPanel(SrcFiles, Passwrd, Modes, Overwrite);
         ShowFloatPanel(PP, "Encrypting");
     }
     else if (Modes == Chiave.ProcessPanel.Operation.Decrypt)
     {
         ProcessPanel PP = new ProcessPanel(SrcFiles, Passwrd, Modes, Overwrite);
         ShowFloatPanel(PP, "Decrypting");
     }
 }