Beispiel #1
0
        private void GetPointer(String ThePath)
        {
            if (checkBox1.Checked == true)
            {
                byte[] TheCert = CertUtils.GetCert(ThePath, true);
                string SavFile = "";
                saveFileDialog1.ShowDialog();
                SavFile = saveFileDialog1.FileName;

                FileStream fs2 = new FileStream(SavFile, FileMode.Create);
                fs2.Write(TheCert, 0, TheCert.Length);
                fs2.Flush();
                fs2.Close();
            }
            else
            {
                byte[] TheCert = CertUtils.GetCert(ThePath, false);
                string SavFile = "";
                saveFileDialog1.ShowDialog();
                SavFile = saveFileDialog1.FileName;

                FileStream fs2 = new FileStream(SavFile, FileMode.Create);
                fs2.Write(TheCert, 0, TheCert.Length);
                fs2.Flush();
                fs2.Close();
            }
        }