﻿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 Memory
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void odpriPloscico(object sender, EventArgs e)
        {
            PictureBox ploscica = (PictureBox)sender;
            ploscica.Image = (System.Drawing.Image) Properties.Resources.smiley1;
            System.Threading.Thread.Sleep(500);
            ploscica.BorderStyle = BorderStyle.Fixed3D;
            System.Threading.Thread.Sleep(500);
            ploscica.Image = (System.Drawing.Image)Properties.Resources.Snoopy4;
        }

        private void timer_odpriPloscico_Tick(object sender, EventArgs e)
        {
            timer_odpriPloscico.Stop();
        }

        private void klik(object sender, EventArgs e)
        {
            PictureBox ploscica = (PictureBox)sender;
            ploscica.Image = (System.Drawing.Image)Properties.Resources.smiley1;
        }
    }
}
