Files
Metoder/MetoderUppgift/Form1.Designer.cs
2026-01-19 10:48:43 +01:00

197 lines
7.0 KiB
C#

using System.Windows.Forms;
namespace MetoderUppgift
{
partial class BilSimulation
{
/// <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()
{
components = new System.ComponentModel.Container();
Throttle = new TrackBar();
lblThr = new Label();
lblVel = new Label();
lblAcc = new Label();
btnStart = new Button();
Timer = new System.Windows.Forms.Timer(components);
Car = new PictureBox();
tbxAcceleration = new TextBox();
tbxVelocity = new TextBox();
lblMaxAcceleration = new Label();
lblMaxHastighet = new Label();
((System.ComponentModel.ISupportInitialize)Throttle).BeginInit();
((System.ComponentModel.ISupportInitialize)Car).BeginInit();
SuspendLayout();
//
// Throttle
//
Throttle.Location = new Point(6, 205);
Throttle.Margin = new Padding(2, 1, 2, 1);
Throttle.Maximum = 4;
Throttle.Name = "Throttle";
Throttle.Size = new Size(112, 45);
Throttle.TabIndex = 0;
Throttle.TabStop = false;
Throttle.Value = 2;
//
// lblThr
//
lblThr.AutoSize = true;
lblThr.Location = new Point(27, 241);
lblThr.Margin = new Padding(2, 0, 2, 0);
lblThr.Name = "lblThr";
lblThr.Size = new Size(63, 15);
lblThr.TabIndex = 1;
lblThr.Text = "Gaspådrag";
//
// lblVel
//
lblVel.AutoSize = true;
lblVel.Location = new Point(14, 153);
lblVel.Margin = new Padding(2, 0, 2, 0);
lblVel.Name = "lblVel";
lblVel.Size = new Size(58, 15);
lblVel.TabIndex = 2;
lblVel.Text = "Hastighet";
//
// lblAcc
//
lblAcc.AutoSize = true;
lblAcc.Location = new Point(14, 177);
lblAcc.Margin = new Padding(2, 0, 2, 0);
lblAcc.Name = "lblAcc";
lblAcc.Size = new Size(73, 15);
lblAcc.TabIndex = 3;
lblAcc.Text = "Acceleration";
//
// btnStart
//
btnStart.Location = new Point(14, 122);
btnStart.Margin = new Padding(2, 1, 2, 1);
btnStart.Name = "btnStart";
btnStart.Size = new Size(81, 22);
btnStart.TabIndex = 4;
btnStart.Text = "Starta";
btnStart.UseVisualStyleBackColor = true;
btnStart.Click += btnStart_Click;
//
// Timer
//
Timer.Interval = 50;
Timer.Tick += Timer_Tick;
//
// Car
//
Car.BackColor = Color.Transparent;
Car.BackgroundImageLayout = ImageLayout.None;
Car.Image = Properties.Resources.Car;
Car.Location = new Point(331, 106);
Car.Margin = new Padding(2, 1, 2, 1);
Car.Name = "Car";
Car.Size = new Size(153, 150);
Car.SizeMode = PictureBoxSizeMode.Zoom;
Car.TabIndex = 7;
Car.TabStop = false;
//
// tbxAcceleration
//
tbxAcceleration.Location = new Point(14, 72);
tbxAcceleration.Margin = new Padding(2, 1, 2, 1);
tbxAcceleration.Name = "tbxAcceleration";
tbxAcceleration.Size = new Size(268, 23);
tbxAcceleration.TabIndex = 8;
//
// tbxVelocity
//
tbxVelocity.Location = new Point(14, 30);
tbxVelocity.Margin = new Padding(2, 1, 2, 1);
tbxVelocity.Name = "tbxVelocity";
tbxVelocity.Size = new Size(268, 23);
tbxVelocity.TabIndex = 9;
//
// lblMaxAcceleration
//
lblMaxAcceleration.AutoSize = true;
lblMaxAcceleration.Location = new Point(14, 55);
lblMaxAcceleration.Margin = new Padding(2, 0, 2, 0);
lblMaxAcceleration.Name = "lblMaxAcceleration";
lblMaxAcceleration.Size = new Size(248, 15);
lblMaxAcceleration.TabIndex = 10;
lblMaxAcceleration.Text = "MaxAcceleration [m/s^2] (Recommended 10)";
//
// lblMaxHastighet
//
lblMaxHastighet.AutoSize = true;
lblMaxHastighet.Location = new Point(14, 14);
lblMaxHastighet.Margin = new Padding(2, 0, 2, 0);
lblMaxHastighet.Name = "lblMaxHastighet";
lblMaxHastighet.Size = new Size(223, 15);
lblMaxHastighet.TabIndex = 11;
lblMaxHastighet.Text = "Max hastighet [m/s] (Recommended: 30)";
lblMaxHastighet.Click += lblMaxHastighet_Click;
//
// BilSimulation
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(583, 292);
Controls.Add(lblMaxHastighet);
Controls.Add(lblMaxAcceleration);
Controls.Add(tbxVelocity);
Controls.Add(tbxAcceleration);
Controls.Add(Car);
Controls.Add(btnStart);
Controls.Add(lblAcc);
Controls.Add(lblVel);
Controls.Add(lblThr);
Controls.Add(Throttle);
Margin = new Padding(2, 1, 2, 1);
MaximizeBox = false;
Name = "BilSimulation";
Text = "Bil Simulation";
Load += Form1_Load;
((System.ComponentModel.ISupportInitialize)Throttle).EndInit();
((System.ComponentModel.ISupportInitialize)Car).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private TrackBar Throttle;
private Label lblThr;
private Label lblVel;
private Label lblAcc;
private Button btnStart;
private System.Windows.Forms.Timer Timer;
private PictureBox Car;
private TextBox tbxAcceleration;
private TextBox tbxVelocity;
private Label lblMaxAcceleration;
private Label lblMaxHastighet;
}
}