2018-01-09 13:49:11 +01:00
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bonhomme02
|
2018-01-03 13:18:01 +01:00
|
|
|
|
{
|
|
|
|
|
partial class Form1
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Variable nécessaire au concepteur.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Nettoyage des ressources utilisées.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Code généré par le Concepteur Windows Form
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
|
|
|
|
|
/// le contenu de cette méthode avec l'éditeur de code.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
|
|
this.timerImage = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
this.btnCreationCarrosse = new System.Windows.Forms.Button();
|
2018-01-11 14:33:44 +01:00
|
|
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.NyanCatGif = new System.Windows.Forms.PictureBox();
|
|
|
|
|
this.Obstacle = new System.Windows.Forms.PictureBox();
|
2018-01-05 22:18:28 +01:00
|
|
|
|
this.Sol = new System.Windows.Forms.PictureBox();
|
2018-01-09 13:49:11 +01:00
|
|
|
|
this.TV = new System.Windows.Forms.PictureBox();
|
2018-01-11 14:33:44 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
2018-01-09 20:19:49 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.NyanCatGif)).BeginInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.Obstacle)).BeginInit();
|
2018-01-05 22:18:28 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.Sol)).BeginInit();
|
2018-01-09 13:49:11 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.TV)).BeginInit();
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// timerImage
|
|
|
|
|
//
|
|
|
|
|
this.timerImage.Interval = 500;
|
|
|
|
|
this.timerImage.Tick += new System.EventHandler(this.timerImage_Tick);
|
|
|
|
|
//
|
|
|
|
|
// btnCreationCarrosse
|
|
|
|
|
//
|
2018-01-04 14:03:06 +01:00
|
|
|
|
this.btnCreationCarrosse.Location = new System.Drawing.Point(13, 468);
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.btnCreationCarrosse.Name = "btnCreationCarrosse";
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.btnCreationCarrosse.Size = new System.Drawing.Size(1246, 23);
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.btnCreationCarrosse.TabIndex = 11;
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.btnCreationCarrosse.Text = "Creer Bonhomme et le faire sauter ";
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.btnCreationCarrosse.UseVisualStyleBackColor = true;
|
|
|
|
|
this.btnCreationCarrosse.Click += new System.EventHandler(this.btnCreationCarrosse_Click);
|
|
|
|
|
//
|
2018-01-11 14:33:44 +01:00
|
|
|
|
// pictureBox1
|
|
|
|
|
//
|
|
|
|
|
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
|
|
|
|
|
this.pictureBox1.BackgroundImage = global::Bonhomme02.Properties.Resources.erupting_volcano_icon_icons_com_70746;
|
|
|
|
|
this.pictureBox1.Image = global::Bonhomme02.Properties.Resources.erupting_volcano_icon_icons_com_70746;
|
|
|
|
|
this.pictureBox1.Location = new System.Drawing.Point(13, 206);
|
|
|
|
|
this.pictureBox1.Name = "pictureBox1";
|
|
|
|
|
this.pictureBox1.Size = new System.Drawing.Size(137, 214);
|
|
|
|
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
|
|
|
|
this.pictureBox1.TabIndex = 0;
|
|
|
|
|
this.pictureBox1.TabStop = false;
|
|
|
|
|
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
|
|
|
|
//
|
2018-01-09 20:19:49 +01:00
|
|
|
|
// NyanCatGif
|
2018-01-09 13:49:11 +01:00
|
|
|
|
//
|
2018-01-09 20:47:44 +01:00
|
|
|
|
this.NyanCatGif.BackColor = System.Drawing.Color.Gray;
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.NyanCatGif.Location = new System.Drawing.Point(1105, 13);
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.NyanCatGif.Name = "NyanCatGif";
|
|
|
|
|
this.NyanCatGif.Size = new System.Drawing.Size(154, 105);
|
|
|
|
|
this.NyanCatGif.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
|
|
|
|
this.NyanCatGif.TabIndex = 14;
|
|
|
|
|
this.NyanCatGif.TabStop = false;
|
2018-01-09 13:49:11 +01:00
|
|
|
|
//
|
2018-01-09 20:19:49 +01:00
|
|
|
|
// Obstacle
|
2018-01-09 13:49:11 +01:00
|
|
|
|
//
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.Obstacle.BackColor = System.Drawing.Color.Silver;
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.Obstacle.Location = new System.Drawing.Point(909, 223);
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.Obstacle.Name = "Obstacle";
|
|
|
|
|
this.Obstacle.Size = new System.Drawing.Size(10, 192);
|
|
|
|
|
this.Obstacle.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
|
|
|
|
this.Obstacle.TabIndex = 13;
|
|
|
|
|
this.Obstacle.TabStop = false;
|
2018-01-09 13:49:11 +01:00
|
|
|
|
//
|
2018-01-05 22:18:28 +01:00
|
|
|
|
// Sol
|
|
|
|
|
//
|
|
|
|
|
this.Sol.BackgroundImage = global::Bonhomme02.Properties.Resources.moon;
|
|
|
|
|
this.Sol.InitialImage = global::Bonhomme02.Properties.Resources.moon;
|
|
|
|
|
this.Sol.Location = new System.Drawing.Point(12, 415);
|
|
|
|
|
this.Sol.Name = "Sol";
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.Sol.Size = new System.Drawing.Size(1247, 47);
|
2018-01-05 22:18:28 +01:00
|
|
|
|
this.Sol.TabIndex = 12;
|
|
|
|
|
this.Sol.TabStop = false;
|
|
|
|
|
//
|
2018-01-09 13:49:11 +01:00
|
|
|
|
// TV
|
|
|
|
|
//
|
2018-01-09 20:47:44 +01:00
|
|
|
|
this.TV.BackColor = System.Drawing.Color.Gray;
|
2018-01-09 13:49:11 +01:00
|
|
|
|
this.TV.Location = new System.Drawing.Point(12, 13);
|
|
|
|
|
this.TV.Name = "TV";
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.TV.Size = new System.Drawing.Size(1247, 449);
|
2018-01-09 13:49:11 +01:00
|
|
|
|
this.TV.TabIndex = 0;
|
|
|
|
|
this.TV.TabStop = false;
|
|
|
|
|
//
|
2018-01-04 14:03:06 +01:00
|
|
|
|
// Form1
|
2018-01-03 13:18:01 +01:00
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
2018-01-09 21:04:00 +01:00
|
|
|
|
this.ClientSize = new System.Drawing.Size(1271, 502);
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.Controls.Add(this.NyanCatGif);
|
|
|
|
|
this.Controls.Add(this.Obstacle);
|
2018-01-05 22:18:28 +01:00
|
|
|
|
this.Controls.Add(this.Sol);
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.Controls.Add(this.btnCreationCarrosse);
|
2018-01-11 14:33:44 +01:00
|
|
|
|
this.Controls.Add(this.pictureBox1);
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.Controls.Add(this.TV);
|
2018-01-09 20:19:49 +01:00
|
|
|
|
this.DoubleBuffered = true;
|
2018-01-04 14:03:06 +01:00
|
|
|
|
this.Name = "Form1";
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.Text = "Dessins Animés";
|
2018-01-05 22:18:28 +01:00
|
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
|
|
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove);
|
2018-01-11 14:33:44 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
2018-01-09 20:19:49 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.NyanCatGif)).EndInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.Obstacle)).EndInit();
|
2018-01-05 22:18:28 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.Sol)).EndInit();
|
2018-01-09 13:49:11 +01:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.TV)).EndInit();
|
2018-01-03 13:18:01 +01:00
|
|
|
|
this.ResumeLayout(false);
|
2018-01-09 13:49:11 +01:00
|
|
|
|
this.PerformLayout();
|
2018-01-03 13:18:01 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.PictureBox TV;
|
|
|
|
|
private System.Windows.Forms.Timer timerImage;
|
|
|
|
|
private System.Windows.Forms.Button btnCreationCarrosse;
|
2018-01-11 14:33:44 +01:00
|
|
|
|
private PictureBox pictureBox1;
|
2018-01-05 22:18:28 +01:00
|
|
|
|
private System.Windows.Forms.PictureBox Sol;
|
2018-01-09 20:19:49 +01:00
|
|
|
|
private System.Windows.Forms.PictureBox Obstacle;
|
|
|
|
|
private System.Windows.Forms.PictureBox NyanCatGif;
|
2018-01-11 14:33:44 +01:00
|
|
|
|
|
2018-01-03 13:18:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|