Beispiel #1
0
        private void VerifyShareProof()
        {
            OpenFileDialog dialog = new OpenFileDialog();
              dialog.Title = Resources.ChooseCertificateLoadDialog;
              dialog.InitialDirectory = Status.DataPath;
              dialog.CheckPathExists = true;
              dialog.CheckFileExists = true;
              dialog.Filter = Files.BadShareProofFileFilter;

              if (dialog.ShowDialog() == DialogResult.OK)
              {
            this.nextItemBadShareProof = new BadShareProofItem();
            this.nextItemBadShareProof.IsAuthority = false;
            this.nextItemBadShareProof.SignedBadShareProof = Serializable.Load<Signed<BadShareProof>>(dialog.FileName);
            OnNextStep();
              }
        }
 public override WizardItem Next()
 {
     if (this.signedBadShareProof != null)
       {
     var badShareProofItem = new BadShareProofItem();
     badShareProofItem.IsAuthority = true;
     badShareProofItem.SignedBadShareProof = this.signedBadShareProof;
     return badShareProofItem;
       }
       else
       {
     return new AuthorityListVotingsItem();
       }
 }