140 lines
6.0 KiB
C#
140 lines
6.0 KiB
C#
|
namespace Lab3_2_CalebFontenot
|
|||
|
{
|
|||
|
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.milesPromptLabel = new System.Windows.Forms.Label();
|
|||
|
this.gallonsPromptLabel = new System.Windows.Forms.Label();
|
|||
|
this.outputDescriptionLabel = new System.Windows.Forms.Label();
|
|||
|
this.milesTextBox = new System.Windows.Forms.TextBox();
|
|||
|
this.gallonsTextBox = new System.Windows.Forms.TextBox();
|
|||
|
this.mpgLabel = new System.Windows.Forms.TextBox();
|
|||
|
this.calculateButton = new System.Windows.Forms.Button();
|
|||
|
this.exitButton = new System.Windows.Forms.Button();
|
|||
|
this.SuspendLayout();
|
|||
|
//
|
|||
|
// milesPromptLabel
|
|||
|
//
|
|||
|
this.milesPromptLabel.AutoSize = true;
|
|||
|
this.milesPromptLabel.Location = new System.Drawing.Point(12, 30);
|
|||
|
this.milesPromptLabel.Name = "milesPromptLabel";
|
|||
|
this.milesPromptLabel.Size = new System.Drawing.Size(183, 15);
|
|||
|
this.milesPromptLabel.TabIndex = 0;
|
|||
|
this.milesPromptLabel.Text = "Enter the number of miles driven:";
|
|||
|
//
|
|||
|
// gallonsPromptLabel
|
|||
|
//
|
|||
|
this.gallonsPromptLabel.AutoSize = true;
|
|||
|
this.gallonsPromptLabel.Location = new System.Drawing.Point(27, 71);
|
|||
|
this.gallonsPromptLabel.Name = "gallonsPromptLabel";
|
|||
|
this.gallonsPromptLabel.Size = new System.Drawing.Size(168, 15);
|
|||
|
this.gallonsPromptLabel.TabIndex = 1;
|
|||
|
this.gallonsPromptLabel.Text = "Enther the gallons of gas used:";
|
|||
|
//
|
|||
|
// outputDescriptionLabel
|
|||
|
//
|
|||
|
this.outputDescriptionLabel.AutoSize = true;
|
|||
|
this.outputDescriptionLabel.Location = new System.Drawing.Point(105, 105);
|
|||
|
this.outputDescriptionLabel.Name = "outputDescriptionLabel";
|
|||
|
this.outputDescriptionLabel.Size = new System.Drawing.Size(90, 15);
|
|||
|
this.outputDescriptionLabel.TabIndex = 2;
|
|||
|
this.outputDescriptionLabel.Text = "Your car\'s MPG:";
|
|||
|
//
|
|||
|
// milesTextBox
|
|||
|
//
|
|||
|
this.milesTextBox.Location = new System.Drawing.Point(212, 27);
|
|||
|
this.milesTextBox.Name = "milesTextBox";
|
|||
|
this.milesTextBox.Size = new System.Drawing.Size(102, 23);
|
|||
|
this.milesTextBox.TabIndex = 3;
|
|||
|
//
|
|||
|
// gallonsTextBox
|
|||
|
//
|
|||
|
this.gallonsTextBox.Location = new System.Drawing.Point(214, 63);
|
|||
|
this.gallonsTextBox.Name = "gallonsTextBox";
|
|||
|
this.gallonsTextBox.Size = new System.Drawing.Size(100, 23);
|
|||
|
this.gallonsTextBox.TabIndex = 4;
|
|||
|
//
|
|||
|
// mpgLabel
|
|||
|
//
|
|||
|
this.mpgLabel.Location = new System.Drawing.Point(214, 102);
|
|||
|
this.mpgLabel.Name = "mpgLabel";
|
|||
|
this.mpgLabel.Size = new System.Drawing.Size(100, 23);
|
|||
|
this.mpgLabel.TabIndex = 5;
|
|||
|
//
|
|||
|
// calculateButton
|
|||
|
//
|
|||
|
this.calculateButton.Location = new System.Drawing.Point(68, 132);
|
|||
|
this.calculateButton.Name = "calculateButton";
|
|||
|
this.calculateButton.Size = new System.Drawing.Size(75, 44);
|
|||
|
this.calculateButton.TabIndex = 6;
|
|||
|
this.calculateButton.Text = "Calculate MPG";
|
|||
|
this.calculateButton.UseVisualStyleBackColor = true;
|
|||
|
this.calculateButton.Click += new System.EventHandler(this.calculateButton_Click);
|
|||
|
//
|
|||
|
// exitButton
|
|||
|
//
|
|||
|
this.exitButton.Location = new System.Drawing.Point(149, 132);
|
|||
|
this.exitButton.Name = "exitButton";
|
|||
|
this.exitButton.Size = new System.Drawing.Size(75, 44);
|
|||
|
this.exitButton.TabIndex = 7;
|
|||
|
this.exitButton.Text = "Exit";
|
|||
|
this.exitButton.UseVisualStyleBackColor = true;
|
|||
|
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
|
|||
|
//
|
|||
|
// Form1
|
|||
|
//
|
|||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
|||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
this.ClientSize = new System.Drawing.Size(326, 188);
|
|||
|
this.Controls.Add(this.exitButton);
|
|||
|
this.Controls.Add(this.calculateButton);
|
|||
|
this.Controls.Add(this.mpgLabel);
|
|||
|
this.Controls.Add(this.gallonsTextBox);
|
|||
|
this.Controls.Add(this.milesTextBox);
|
|||
|
this.Controls.Add(this.outputDescriptionLabel);
|
|||
|
this.Controls.Add(this.gallonsPromptLabel);
|
|||
|
this.Controls.Add(this.milesPromptLabel);
|
|||
|
this.Name = "Form1";
|
|||
|
this.Text = "Form1";
|
|||
|
this.ResumeLayout(false);
|
|||
|
this.PerformLayout();
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private Label milesPromptLabel;
|
|||
|
private Label gallonsPromptLabel;
|
|||
|
private Label outputDescriptionLabel;
|
|||
|
private TextBox milesTextBox;
|
|||
|
private TextBox gallonsTextBox;
|
|||
|
private TextBox mpgLabel;
|
|||
|
private Button calculateButton;
|
|||
|
private Button exitButton;
|
|||
|
}
|
|||
|
}
|