Exemplo n.º 1
0
        private void CheckShares()
        {
            if (Status.Certificate is AuthorityCertificate &&
              this.votingList.SelectedIndices.Count > 0)
              {
            SetGuiEnable(false);

            ListViewItem item = this.votingList.SelectedItems[0];
            VotingDescriptor voting = (VotingDescriptor)item.Tag;

            var authorityVotePreviewItem = new AuthorityVotePreviewItem();
            authorityVotePreviewItem.VotingDescriptor = voting;

            this.nextItem = authorityVotePreviewItem;
            OnNextStep();
              }
        }
Exemplo n.º 2
0
        private void SetItem(WizardItem item)
        {
            if (this.item != null)
              {
            this.item.UpdateWizard -= new EventHandler(item_UpdateWizard);
            this.item.NextStep -= new EventHandler(item_NextStep);
            this.item.ChangeLanguage -= new EventHandler(item_ChangeLanguage);
            this.itemPanel.Controls.Remove(this.item);
              }

              this.item = item;
              this.item.Status = this.status;

              this.itemPanel.Controls.Add(this.item);

              this.item.Dock = DockStyle.Fill;

              this.previouseButton.Enabled = this.item.CanPrevious;
              this.nextButton.Enabled = this.item.CanNext;
              this.cancelButton.Enabled = this.item.CanCancel;
              this.item.UpdateLanguage();

              this.item.UpdateWizard += new EventHandler(item_UpdateWizard);
              this.item.NextStep += new EventHandler(item_NextStep);
              this.item.ChangeLanguage += new EventHandler(item_ChangeLanguage);

              Refresh();
              Application.DoEvents();

              this.status.SetNone();
              this.item.Begin();
        }