198 lines
8.6 KiB
C#
198 lines
8.6 KiB
C#
|
|
namespace Lab1
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (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.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
|
this.radioButton1 = new System.Windows.Forms.RadioButton();
|
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
this.WarningLabel = new System.Windows.Forms.Label();
|
|
this.totalValue = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.hoursEntered = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.groupBox1.SuspendLayout();
|
|
this.groupBox2.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.radioButton2);
|
|
this.groupBox1.Controls.Add(this.radioButton1);
|
|
this.groupBox1.Location = new System.Drawing.Point(264, 12);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(197, 119);
|
|
this.groupBox1.TabIndex = 0;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "Customer Type";
|
|
//
|
|
// radioButton2
|
|
//
|
|
this.radioButton2.AutoSize = true;
|
|
this.radioButton2.Location = new System.Drawing.Point(7, 66);
|
|
this.radioButton2.Name = "radioButton2";
|
|
this.radioButton2.Size = new System.Drawing.Size(87, 29);
|
|
this.radioButton2.TabIndex = 1;
|
|
this.radioButton2.TabStop = true;
|
|
this.radioButton2.Text = "Staff";
|
|
this.radioButton2.UseVisualStyleBackColor = true;
|
|
this.radioButton2.CheckedChanged += new System.EventHandler(this.CustomerTypeChange_CheckedChanged);
|
|
//
|
|
// radioButton1
|
|
//
|
|
this.radioButton1.AutoSize = true;
|
|
this.radioButton1.Location = new System.Drawing.Point(7, 31);
|
|
this.radioButton1.Name = "radioButton1";
|
|
this.radioButton1.Size = new System.Drawing.Size(135, 29);
|
|
this.radioButton1.TabIndex = 0;
|
|
this.radioButton1.TabStop = true;
|
|
this.radioButton1.Text = "Customer";
|
|
this.radioButton1.UseVisualStyleBackColor = true;
|
|
this.radioButton1.CheckedChanged += new System.EventHandler(this.CustomerTypeChange_CheckedChanged);
|
|
//
|
|
// groupBox2
|
|
//
|
|
this.groupBox2.Controls.Add(this.WarningLabel);
|
|
this.groupBox2.Controls.Add(this.totalValue);
|
|
this.groupBox2.Controls.Add(this.label4);
|
|
this.groupBox2.Controls.Add(this.hoursEntered);
|
|
this.groupBox2.Controls.Add(this.label3);
|
|
this.groupBox2.Controls.Add(this.label2);
|
|
this.groupBox2.Controls.Add(this.label1);
|
|
this.groupBox2.Location = new System.Drawing.Point(12, 136);
|
|
this.groupBox2.Name = "groupBox2";
|
|
this.groupBox2.Size = new System.Drawing.Size(848, 302);
|
|
this.groupBox2.TabIndex = 1;
|
|
this.groupBox2.TabStop = false;
|
|
this.groupBox2.Text = "Hours to park for";
|
|
//
|
|
// WarningLabel
|
|
//
|
|
this.WarningLabel.AutoSize = true;
|
|
this.WarningLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.WarningLabel.ForeColor = System.Drawing.Color.Maroon;
|
|
this.WarningLabel.Location = new System.Drawing.Point(467, 116);
|
|
this.WarningLabel.Name = "WarningLabel";
|
|
this.WarningLabel.Size = new System.Drawing.Size(313, 25);
|
|
this.WarningLabel.TabIndex = 6;
|
|
this.WarningLabel.Text = "Hours must be between 0-24";
|
|
this.WarningLabel.Visible = false;
|
|
//
|
|
// totalValue
|
|
//
|
|
this.totalValue.AutoSize = true;
|
|
this.totalValue.Location = new System.Drawing.Point(321, 153);
|
|
this.totalValue.Name = "totalValue";
|
|
this.totalValue.Size = new System.Drawing.Size(66, 25);
|
|
this.totalValue.TabIndex = 5;
|
|
this.totalValue.Text = "$0.00";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label4.Location = new System.Drawing.Point(252, 153);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(79, 25);
|
|
this.label4.TabIndex = 4;
|
|
this.label4.Text = "Total: ";
|
|
//
|
|
// hoursEntered
|
|
//
|
|
this.hoursEntered.Location = new System.Drawing.Point(291, 115);
|
|
this.hoursEntered.Name = "hoursEntered";
|
|
this.hoursEntered.Size = new System.Drawing.Size(169, 31);
|
|
this.hoursEntered.TabIndex = 3;
|
|
this.hoursEntered.TextChanged += new System.EventHandler(this.HoursEntered_TextChanged);
|
|
this.hoursEntered.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.HoursEntered_KeyPress);
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(247, 87);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(268, 25);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "Enter the hours to park for:";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(275, 42);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(194, 25);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "Maximum 24 hours";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(275, 17);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(216, 25);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "Parking is $2.00/hour";
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(874, 450);
|
|
this.Controls.Add(this.groupBox2);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.Name = "Form1";
|
|
this.Text = "Calculator";
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.groupBox2.ResumeLayout(false);
|
|
this.groupBox2.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
private System.Windows.Forms.RadioButton radioButton1;
|
|
private System.Windows.Forms.RadioButton radioButton2;
|
|
private System.Windows.Forms.GroupBox groupBox2;
|
|
private System.Windows.Forms.TextBox hoursEntered;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.Label totalValue;
|
|
private System.Windows.Forms.Label WarningLabel;
|
|
}
|
|
}
|
|
|