﻿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 UJAMI_ME
{
    public partial class UJAMI_ME_okno : Form
    {
        static Random generator = new Random();
        public UJAMI_ME_okno()
        {
            InitializeComponent();
        }

        private void SpremeniPolozaj(object sender, EventArgs e)
        {
            this.button1.Location = new Point(generator.Next(0, this.Width - this.button1.Width),
                                              generator.Next(0, this.Height - this.button1.Height));

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.generatorDogodka.Start();
        }
    }
}
