public Graph(Get_Data f, double a, double b, double quantity, SimpsonsMethod d) { this.a = a; this.b = b; this.quantity = (int)quantity; interval = (double)(b - a) / this.quantity; d.EventSpline += OnSpline1; d.EventProgress += OnProgress; d.EventFinish += OnFinish; d.EventTime += OnTime; this.d1 = d; f.Hide(); g = f; InitializeComponent(); }
public Graph(Get_Data f, double a, double b, double quantity, MonteCarloMethod d) { this.a = a; this.b = b; this.quantity = (int)quantity; interval = (b - a) / this.quantity; d.EventPoints += OnPoints; d.EventNeedPoints += OnNeedPoints; d.EventProgress += OnProgress; d.EventFinish += OnFinish; d.EventTime += OnTime; this.d2 = d; f.Hide(); g = f; InitializeComponent(); }
public Graph(Get_Data f, double a, double b, double quantity, MidpointMethod d) { this.a = a; this.b = b; this.quantity = (int)quantity; interval = (b - a) / this.quantity; d.EventColumn += OnColumn; d.EventProgress += OnProgress; d.EventFinish += OnFinish; d.EventTime += OnTime; this.d = d; //d.Start(); f.Hide(); g = f; InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { Get_Data g1 = new Get_Data(this); g1.Show(); }