Exemple #1
0
        private void bt_settingDecrypt_Click(object sender, RoutedEventArgs e)
        {
            DecryptionSettingWindow dsw = new DecryptionSettingWindow();

            dsw.Key = this.privateKey;
            dsw.ManifestFilePath = this.manifestFilePath;
            Nullable <bool> result = dsw.ShowDialog();

            if (result == true)
            {
                this.privateKey       = dsw.Key;
                this.manifestFilePath = dsw.ManifestFilePath;
            }
        }
        private void bt_settingDecrypt_Click(object sender, RoutedEventArgs e)
        {
            DecryptionSettingWindow dsw = new DecryptionSettingWindow();

            dsw.Key = this.privateKey;
            dsw.ManifestFilePath = this.manifestFilePath;
            if (mode == 0)
            {
                dsw.tb_manifestPath.Visibility = System.Windows.Visibility.Hidden;
                dsw.bt_selManifest.Visibility  = System.Windows.Visibility.Hidden;
                dsw.head_maniPath.Visibility   = System.Windows.Visibility.Hidden;
                dsw.Title = "Input RSA Key";
            }

            Nullable <bool> result = dsw.ShowDialog();

            if (result == true)
            {
                this.privateKey       = dsw.Key;
                this.manifestFilePath = dsw.ManifestFilePath;
                this.key = dsw.DesKey;
            }
        }