skeezr
Si c'est pour avoir des retours et essayer de t'améliorer sachant que c'est ta première app alors oui tu peux fournir le code source, ça permet qu'après les gens sur les forums donnent leurs avis et te disent ce que tu peux améliorer, changer
La c'est une réponse qui me plait et qui est utile merci :
Voici le code source :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication6
{
public partial class AIMBOOSTER : Form
{
private int tailley;
private int taillex;
private int point = 0;
private int faute = 0;
Timer temp = new Timer();
public AIMBOOSTER()
{
InitializeComponent();
}
private void button4_Click(object sender, EventArgs e)
{
temp.Stop();
temp.Interval = 700;
temp.Tick += Temp_Tick;
temp.Start();
point = point + 1;
Random aleatoire = new Random();
int x = aleatoire.Next(900);
int y = aleatoire.Next(900);
Random taille = new Random();
tailley = taille.Next(25, 60);
taillex = taille.Next(25, 60);
button4.Size = new Size(taillex, tailley);
button4.Location = new Point(x, y);
label1.Text = string.Format("Points : {0} ", point);
}
private void Temp_Tick(object sender, EventArgs e)
{
Random aleatoire = new Random();
int x = aleatoire.Next(900);
int y = aleatoire.Next(900);
Random taille = new Random();
tailley = taille.Next(25, 60);
taillex = taille.Next(25, 60);
button4.Size = new Size(taillex, tailley);
button4.Location = new Point(x, y);
}
private void button3_Click(object sender, EventArgs e)
{
faute = faute + 1;
label2.Text = string.Format("Fautes : {0}", faute);
}
private void button5_Click(object sender, EventArgs e)
{
MessageBox.Show("Bonjour et bienvenu(e) sur l'application AIM BOOSTER, vous vous retrouvez en face d'un bouton qui lorsque vous appuyerez dessus, changera de taille et d'emplacement. Mais pour que ce soit plus marrant j'ai rajouté une petite difficulté, le bouton change de place au bout d'un certain temps, il faut donc être rapide. Idéal pour améliorer sa visée et ses reflex me direz-vous.","TUTORIEL",MessageBoxButtons.OK,MessageBoxIcon.Information);
button5.Size = new Size(0,0) ;
}
private void button6_Click(object sender, EventArgs e)
{
faute = 0;
point = 0;
label1.Text = "Points : 0";
label2.Text = "Fautes : 0";
}
private void AIMBOOSTER_Load(object sender, EventArgs e)
{
}
}
}
Excusez moi je ne sais pas comment mettre sous forme de spoiler si au passage quelqu'un pourrait me le dire merci :d