Esempio n. 1
0
        public FormSettings(EstEIDSettings config)
        {
            InitializeComponent();

            this.config = config;

            // signature settings
            this.pageTextBox.Text               = config.SignaturePage.ToString();
            this.SignatureRender.Checked        = config.SignatureRender.Equals("1");
            this.radioButtonSector.Checked      = config.SignatureUseSector;
            this.radioButtonCoordinates.Checked = config.SignatureUseCoordinates;
            this.xTextBox.Text = config.SignatureX.ToString();
            this.yTextBox.Text = config.SignatureY.ToString();
            this.wTextBox.Text = config.SignatureW.ToString();
            this.hTextBox.Text = config.SignatureH.ToString();

            // timestamp authority
            this.EnableTSA.Checked = config.TsaEnabled;
            this.urlTextBox.Text   = config.TsaUrl;
            this.nameTextBox.Text  = config.TsaUser;
            this.passwordBox.Text  = config.TsaPassword;

            if ((!this.radioButtonSector.Checked) && (!this.radioButtonCoordinates.Checked))
            {
                this.radioButtonSector.Checked = true;
                config.SignatureUseSector      = this.radioButtonSector.Checked;
            }

            SignatureSector = config.SignatureSector;
        }
Esempio n. 2
0
        public Form1()
        {
            this.Font = new Font("Verdana", (float)8.25);

            InitializeComponent();

            settings = new EstEIDSettings();
            conf     = new XmlConf();

            LoadConfig();
        }
Esempio n. 3
0
        public SignatureLocation(EstEIDSettings config)
        {
            UseSector = config.SignatureUseSector;
            if (!UseSector)
            {
                // probably both are undefined ?
                // then default to using sector based signature location
                if (!config.SignatureUseCoordinates)
                {
                    UseSector = true;
                }
            }

            SectorIndex = uint.Parse(config.SignatureSector);
            rectangle   = new Rectangle(
                config.SignatureX,
                config.SignatureY,
                config.SignatureW,
                config.SignatureH);
        }