142 lines
6.2 KiB
C#
142 lines
6.2 KiB
C#
namespace Fuel_Economy_with_TryParse
|
|
{
|
|
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.exitButton = new System.Windows.Forms.Button();
|
|
this.calculateButton = new System.Windows.Forms.Button();
|
|
this.mpgLabel = new System.Windows.Forms.Label();
|
|
this.outputDescriptionLabel = new System.Windows.Forms.Label();
|
|
this.gallonsTextBox = new System.Windows.Forms.TextBox();
|
|
this.milesTextBox = new System.Windows.Forms.TextBox();
|
|
this.gallonsPromptLabel = new System.Windows.Forms.Label();
|
|
this.milesPromptLabel = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// exitButton
|
|
//
|
|
this.exitButton.Location = new System.Drawing.Point(145, 134);
|
|
this.exitButton.Name = "exitButton";
|
|
this.exitButton.Size = new System.Drawing.Size(75, 35);
|
|
this.exitButton.TabIndex = 15;
|
|
this.exitButton.Text = "Exit";
|
|
this.exitButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// calculateButton
|
|
//
|
|
this.calculateButton.Location = new System.Drawing.Point(64, 134);
|
|
this.calculateButton.Name = "calculateButton";
|
|
this.calculateButton.Size = new System.Drawing.Size(75, 35);
|
|
this.calculateButton.TabIndex = 14;
|
|
this.calculateButton.Text = "Calculate MPG";
|
|
this.calculateButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// mpgLabel
|
|
//
|
|
this.mpgLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.mpgLabel.Location = new System.Drawing.Point(176, 79);
|
|
this.mpgLabel.Name = "mpgLabel";
|
|
this.mpgLabel.Size = new System.Drawing.Size(100, 23);
|
|
this.mpgLabel.TabIndex = 13;
|
|
this.mpgLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// outputDescriptionLabel
|
|
//
|
|
this.outputDescriptionLabel.AutoSize = true;
|
|
this.outputDescriptionLabel.Location = new System.Drawing.Point(84, 85);
|
|
this.outputDescriptionLabel.Name = "outputDescriptionLabel";
|
|
this.outputDescriptionLabel.Size = new System.Drawing.Size(84, 13);
|
|
this.outputDescriptionLabel.TabIndex = 12;
|
|
this.outputDescriptionLabel.Text = "Your car\'s MPG:";
|
|
//
|
|
// gallonsTextBox
|
|
//
|
|
this.gallonsTextBox.Location = new System.Drawing.Point(176, 40);
|
|
this.gallonsTextBox.Name = "gallonsTextBox";
|
|
this.gallonsTextBox.Size = new System.Drawing.Size(100, 20);
|
|
this.gallonsTextBox.TabIndex = 11;
|
|
//
|
|
// milesTextBox
|
|
//
|
|
this.milesTextBox.Location = new System.Drawing.Point(176, 12);
|
|
this.milesTextBox.Name = "milesTextBox";
|
|
this.milesTextBox.Size = new System.Drawing.Size(100, 20);
|
|
this.milesTextBox.TabIndex = 10;
|
|
//
|
|
// gallonsPromptLabel
|
|
//
|
|
this.gallonsPromptLabel.AutoSize = true;
|
|
this.gallonsPromptLabel.Location = new System.Drawing.Point(21, 43);
|
|
this.gallonsPromptLabel.Name = "gallonsPromptLabel";
|
|
this.gallonsPromptLabel.Size = new System.Drawing.Size(147, 13);
|
|
this.gallonsPromptLabel.TabIndex = 9;
|
|
this.gallonsPromptLabel.Text = "Enter the gallons of gas used:";
|
|
//
|
|
// milesPromptLabel
|
|
//
|
|
this.milesPromptLabel.AutoSize = true;
|
|
this.milesPromptLabel.Location = new System.Drawing.Point(9, 15);
|
|
this.milesPromptLabel.Name = "milesPromptLabel";
|
|
this.milesPromptLabel.Size = new System.Drawing.Size(161, 13);
|
|
this.milesPromptLabel.TabIndex = 8;
|
|
this.milesPromptLabel.Text = "Enter the number of miles driven:";
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(284, 181);
|
|
this.Controls.Add(this.exitButton);
|
|
this.Controls.Add(this.calculateButton);
|
|
this.Controls.Add(this.mpgLabel);
|
|
this.Controls.Add(this.outputDescriptionLabel);
|
|
this.Controls.Add(this.gallonsTextBox);
|
|
this.Controls.Add(this.milesTextBox);
|
|
this.Controls.Add(this.gallonsPromptLabel);
|
|
this.Controls.Add(this.milesPromptLabel);
|
|
this.Name = "Form1";
|
|
this.Text = "Fuel Economy";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button exitButton;
|
|
private System.Windows.Forms.Button calculateButton;
|
|
private System.Windows.Forms.Label mpgLabel;
|
|
private System.Windows.Forms.Label outputDescriptionLabel;
|
|
private System.Windows.Forms.TextBox gallonsTextBox;
|
|
private System.Windows.Forms.TextBox milesTextBox;
|
|
private System.Windows.Forms.Label gallonsPromptLabel;
|
|
private System.Windows.Forms.Label milesPromptLabel;
|
|
}
|
|
}
|
|
|