using System.Windows.Forms; namespace MetoderUppgift { partial class Form1 { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// 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(12, 438); Throttle.Maximum = 4; Throttle.Name = "Throttle"; Throttle.Size = new Size(208, 90); Throttle.TabIndex = 0; Throttle.Value = 2; // // lblThr // lblThr.AutoSize = true; lblThr.Location = new Point(50, 514); lblThr.Name = "lblThr"; lblThr.Size = new Size(126, 32); lblThr.TabIndex = 1; lblThr.Text = "Gaspådrag"; // // lblVel // lblVel.AutoSize = true; lblVel.Location = new Point(26, 327); lblVel.Name = "lblVel"; lblVel.Size = new Size(116, 32); lblVel.TabIndex = 2; lblVel.Text = "Hastighet"; // // lblAcc // lblAcc.AutoSize = true; lblAcc.Location = new Point(26, 378); lblAcc.Name = "lblAcc"; lblAcc.Size = new Size(145, 32); lblAcc.TabIndex = 3; lblAcc.Text = "Acceleration"; // // btnStart // btnStart.Location = new Point(26, 260); btnStart.Name = "btnStart"; btnStart.Size = new Size(150, 46); 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(552, 277); Car.Name = "Car"; Car.Size = new Size(148, 159); Car.SizeMode = PictureBoxSizeMode.Zoom; Car.TabIndex = 7; Car.TabStop = false; // // tbxAcceleration // tbxAcceleration.Location = new Point(26, 153); tbxAcceleration.Name = "tbxAcceleration"; tbxAcceleration.Size = new Size(288, 39); tbxAcceleration.TabIndex = 8; // // tbxVelocity // tbxVelocity.Location = new Point(26, 64); tbxVelocity.Name = "tbxVelocity"; tbxVelocity.Size = new Size(288, 39); tbxVelocity.TabIndex = 9; // // lblMaxAcceleration // lblMaxAcceleration.AutoSize = true; lblMaxAcceleration.Location = new Point(26, 118); lblMaxAcceleration.Name = "lblMaxAcceleration"; lblMaxAcceleration.Size = new Size(280, 32); lblMaxAcceleration.TabIndex = 10; lblMaxAcceleration.Text = "MaxAcceleration [m/s^2]"; // // lblMaxHastighet // lblMaxHastighet.AutoSize = true; lblMaxHastighet.Location = new Point(26, 29); lblMaxHastighet.Name = "lblMaxHastighet"; lblMaxHastighet.Size = new Size(226, 32); lblMaxHastighet.TabIndex = 11; lblMaxHastighet.Text = "Max hastighet [m/s]"; // // Form1 // AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1083, 622); 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); MaximizeBox = false; Name = "Form1"; Text = "Form1"; 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; } }