예제 #1
0
        /// <summary>
        /// Backup your signing keys.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnBackup_Click(object sender, RoutedEventArgs e)
        {
            string zipfile = string.Empty;

            ///Create Dialog
            Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog();
            dlg.FileName   = "signingkey";
            dlg.DefaultExt = ".zip";                   // Default file extension
            dlg.Filter     = "zip files (.zip)|*.zip"; // Filter files by extension
            bool?result = dlg.ShowDialog();

            if (result == true)
            {
                zipfile = dlg.FileName;
                signingData.Backup(zipfile);
            }
        }
예제 #2
0
 public void SigningDataBackupTest()
 {
     _signingData.Backup(_certName);
     Assert.True(File.Exists(_signingData.CertPath + _certName));
 }