Professional Documents
Culture Documents
Taboão da Serra, SP
2023
I. CÓDIGO DO PROGRAMA
/*
* Created by SharpDevelop.
* User: RM20232930025 E RM20232930097
* Date: 11/09/2023
* Time: 14:33
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Jogo_Da_Memoria_2023
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
int [] tempo = new int[4];
int contclicks2;
int[] Num_aleatorios = new int[16];
Random rnd = new Random();
string[] animais = {"Boomerang","Branquinha", "Gêmeos", "Bomb", "Rosinha", "Pig", "Chuck",
"Red"};
listBox1.Items.Clear();
this.BackgroundImage = Image.FromFile("Design_botão.png");
this.BackColor = Color.White;
if(tempo [1] == 6)
{
tempo[1] = 0;
tempo[2]++;
}
if(tempo [3] == 6)
{
tempo[3] = 0;
}
label2.Text = "Tempo: " + tempo[3].ToString() + tempo[2].ToString() + ":" +
tempo[1].ToString() + tempo[0].ToString();
}
}
}