/// <summary>
 /// Initializes a new instance of the <see cref="DefaultDataSource"/> class.
 /// </summary>
 /// <param name="serialBox">The serial box.</param>
 public DefaultDataSource(SerialBox.SerialBox serialBox)
 {
     SerialBox = serialBox;
 }
Beispiel #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.stbBase = new SerialBox.SerialBox();
     this.stbPass = new SerialBox.SerialBox();
     this.btnGenerate = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.txtIdentifier = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // stbBase
     //
     this.stbBase.CaptleLettersOnly = true;
     this.stbBase.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.stbBase.Location = new System.Drawing.Point(12, 35);
     this.stbBase.Name = "stbBase";
     this.stbBase.Size = new System.Drawing.Size(293, 18);
     this.stbBase.TabIndex = 0;
     //
     // stbPass
     //
     this.stbPass.CaptleLettersOnly = true;
     this.stbPass.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.stbPass.Location = new System.Drawing.Point(12, 59);
     this.stbPass.Name = "stbPass";
     this.stbPass.Size = new System.Drawing.Size(293, 18);
     this.stbPass.TabIndex = 1;
     //
     // btnGenerate
     //
     this.btnGenerate.Location = new System.Drawing.Point(12, 90);
     this.btnGenerate.Name = "btnGenerate";
     this.btnGenerate.Size = new System.Drawing.Size(293, 23);
     this.btnGenerate.TabIndex = 2;
     this.btnGenerate.Text = "Generate";
     this.btnGenerate.UseVisualStyleBackColor = true;
     this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 9);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(50, 13);
     this.label1.TabIndex = 3;
     this.label1.Text = "Indetifier:";
     //
     // txtIdentifier
     //
     this.txtIdentifier.Location = new System.Drawing.Point(68, 6);
     this.txtIdentifier.MaxLength = 3;
     this.txtIdentifier.Name = "txtIdentifier";
     this.txtIdentifier.Size = new System.Drawing.Size(48, 20);
     this.txtIdentifier.TabIndex = 4;
     //
     // frmMain
     //
     this.AcceptButton = this.btnGenerate;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(336, 146);
     this.Controls.Add(this.txtIdentifier);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnGenerate);
     this.Controls.Add(this.stbPass);
     this.Controls.Add(this.stbBase);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox = false;
     this.Name = "frmMain";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "RMS Activation code maker";
     this.ResumeLayout(false);
     this.PerformLayout();
 }