Exemplo n.º 1
0
        private void InitialCheck()
        {
            DirectoryInfo initial       = new DirectoryInfo("F:/SAUGUMO TEST CHAMBER4/");
            FileInfo      testFileInfo  = null;
            AesEcnryption aesEcnryption = new AesEcnryption();

            if (File.Exists("F:/SAUGUMO TEST CHAMBER4/Area51.zip.aes"))
            {
                testFileInfo = new FileInfo("F:/SAUGUMO TEST CHAMBER4/Area51.zip.aes");
                aesEcnryption.FileDecryption(testFileInfo);
                ZipFile.ExtractToDirectory(testFileInfo.FullName.Replace(".aes", ""), initial.FullName + "PasswordSystemFiles");
                File.Delete(testFileInfo.FullName.Replace(".aes", ""));
            }
            else
            {
                RegiterScreen regiterScreen = new RegiterScreen();
                regiterScreen.Show();
            }
        }
Exemplo n.º 2
0
        private void registerButton_Click(object sender, EventArgs e)
        {
            RegiterScreen register = new RegiterScreen();

            register.Show();
        }