public MainForm() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.FixedSingle; masN = 20; sort = new VisualiseSort(PictureBox, masN, delay); sort.DrawMas(); thread = new Thread(new ThreadStart(Start)); timer1.Tick += new EventHandler(Update); timer1.Interval = delay; timer1.Start(); }
private void newMasToolStripMenuItem_Click(object sender, EventArgs e) { sort.GenerateMas(); sort.DrawMas(); PictureBox.Image = sort.bmp; }