コード例 #1
0
ファイル: set.aspx.cs プロジェクト: dbrgn/pi-vote
        private void BuildTable()
        {
            Table table = new Table();

              table.AddHeaderRow(2, "Notary's sign check cookie");

              if (this.cookie != null)
              {
            table.AddRow("You are:", this.cookie.Certificate.FullName);
            table.AddRow(string.Empty, "Sign check cookie set.");
              }
              else
              {
            table.AddRow("You are:", "Unknown");
              }

              table.AddSpaceRow(2, 32);

              if (!this.valid)
              {
            table.AddRow(string.Empty, this.message);

            if (!string.IsNullOrEmpty(this.error))
            {
              table.AddRow(string.Empty, this.error);
            }
              }

              mainPanel.Controls.Add(table);
        }