private void simulateButton_Click(object sender, EventArgs e) { var(s, ss) = MockLottery.Random1000(); //if (this.cartesianChart1 != null) //{ // this.Controls.Remove(this.cartesianChart1); // this.cartesianChart1 = null; //} //this.cartesianChart1 = new LiveCharts.WinForms.CartesianChart //{ // Dock = DockStyle.Fill, // Location = new System.Drawing.Point(0, 0), // Name = "cartesianChart1", // BackColor = Color.White, // Text = "cartesianChart1" //}; //this.Controls.Add(this.cartesianChart1); //var v = new ChartValues<int>(); //var v1 = new ChartValues<int>(); //v.AddRange(s); //v1.AddRange(ss); //cartesianChart1.Series = new SeriesCollection //{ // new LineSeries // { // Title = "Series 1", // Values =v, // PointGeometry = null // }, //}; //cartesianChart1.Series.Add( // new LineSeries // { // Title = "Series 1", // Values = v1, // PointGeometry = null // }); }
private void analysisButton_Click(object sender, EventArgs e) { MockLottery.AnalysisRandom1000(); }