securebb-win-demos/XAdES Verifier (WinForms)/xadesform.cs
2024-08-08 13:09:34 +06:00

197 lines
7.6 KiB
C#

using System.Windows.Forms;
/// <summary>
/// Summary description for XAdESForm.
/// </summary>
public class XAdESForm : System.Windows.Forms.Form
{
private OpenFileDialog dlgOpen;
private Button btnOK;
public Label lbSignedTime;
public Label lbTimestamp;
public Label lbTimestampSerial;
public System.Windows.Forms.ComboBox cmbVersion;
private System.Windows.Forms.Label lbVersion;
private Label label2;
public ComboBox cmbForm;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public XAdESForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dlgOpen = new System.Windows.Forms.OpenFileDialog();
this.btnOK = new System.Windows.Forms.Button();
this.lbSignedTime = new System.Windows.Forms.Label();
this.lbTimestamp = new System.Windows.Forms.Label();
this.lbTimestampSerial = new System.Windows.Forms.Label();
this.cmbVersion = new System.Windows.Forms.ComboBox();
this.lbVersion = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.cmbForm = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
//
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point(154, 145);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 25);
this.btnOK.TabIndex = 4;
this.btnOK.Text = "OK";
//
// lbSignedTime
//
this.lbSignedTime.AutoSize = true;
this.lbSignedTime.Location = new System.Drawing.Point(12, 61);
this.lbSignedTime.Name = "lbSignedTime";
this.lbSignedTime.Size = new System.Drawing.Size(69, 13);
this.lbSignedTime.TabIndex = 7;
this.lbSignedTime.Text = "Signed Time:";
this.lbSignedTime.Visible = false;
//
// lbTimestamp
//
this.lbTimestamp.AutoSize = true;
this.lbTimestamp.Location = new System.Drawing.Point(12, 83);
this.lbTimestamp.Name = "lbTimestamp";
this.lbTimestamp.Size = new System.Drawing.Size(61, 13);
this.lbTimestamp.TabIndex = 8;
this.lbTimestamp.Text = "Timestamp:";
this.lbTimestamp.Visible = false;
//
// lbTimestampSerial
//
this.lbTimestampSerial.AutoSize = true;
this.lbTimestampSerial.Location = new System.Drawing.Point(12, 103);
this.lbTimestampSerial.Name = "lbTimestampSerial";
this.lbTimestampSerial.Size = new System.Drawing.Size(90, 13);
this.lbTimestampSerial.TabIndex = 9;
this.lbTimestampSerial.Text = "Timestamp Serial:";
this.lbTimestampSerial.Visible = false;
//
// cmbVersion
//
this.cmbVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.cmbVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbVersion.Enabled = false;
this.cmbVersion.Items.AddRange(new object[] {
"1.1.1",
"1.2.2",
"1.3.2",
"1.4.1"});
this.cmbVersion.Location = new System.Drawing.Point(65, 14);
this.cmbVersion.Name = "cmbVersion";
this.cmbVersion.Size = new System.Drawing.Size(67, 21);
this.cmbVersion.TabIndex = 10;
//
// lbVersion
//
this.lbVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lbVersion.Location = new System.Drawing.Point(11, 17);
this.lbVersion.Name = "lbVersion";
this.lbVersion.Size = new System.Drawing.Size(48, 16);
this.lbVersion.TabIndex = 11;
this.lbVersion.Text = "Version:";
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.Location = new System.Drawing.Point(155, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(35, 16);
this.label2.TabIndex = 13;
this.label2.Text = "Form:";
//
// cmbForm
//
this.cmbForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.cmbForm.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbForm.Enabled = false;
this.cmbForm.Items.AddRange(new object[] {
"XML-DSIG",
"XAdES Baseline B",
"XAdES Baseline T",
"XAdES Baseline LT",
"XAdES Baseline LTA",
"XAdES_BES",
"XAdES_EPES",
"XAdES_T",
"XAdES_C",
"XAdES_X",
"XAdES_X_L",
"XAdES_A",
"XAdES_E_BES",
"XAdES_E_EPES",
"XAdES_E_T",
"XAdES_E_C",
"XAdES_E_X",
"XAdES_E_X_Long",
"XAdES_E_X_L",
"XAdES_E_A"});
this.cmbForm.Location = new System.Drawing.Point(196, 14);
this.cmbForm.Name = "cmbForm";
this.cmbForm.Size = new System.Drawing.Size(168, 21);
this.cmbForm.TabIndex = 12;
//
// XAdESForm
//
this.AcceptButton = this.btnOK;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(384, 178);
this.Controls.Add(this.label2);
this.Controls.Add(this.cmbForm);
this.Controls.Add(this.lbVersion);
this.Controls.Add(this.cmbVersion);
this.Controls.Add(this.lbTimestampSerial);
this.Controls.Add(this.lbTimestamp);
this.Controls.Add(this.lbSignedTime);
this.Controls.Add(this.btnOK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "XAdESForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "XAdES Options";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
}