private void RandomizeBtn_Click(object sender, EventArgs e) { bool isSucceed = true; Int32 clustersCount = 0; Int32 pointsCount = 0; isSucceed = Int32.TryParse(points_TextBox.Text, out pointsCount); if (!isSucceed) { MessageBox.Show(@"Clusters Count is invalid. \n Please, observe ur specified data"); return; } maxMins = new Max_Mins(pointsCount); maxMins.Randomize(); maxMins.SetGraphics(panel1.CreateGraphics()); MM_Painter.Draw(maxMins); }
public Form1() { InitializeComponent(); maxMins = new Max_Mins(); }