private void button3_Click(object sender, EventArgs e) { Waves.DCircle c = new Waves.DCircle(new Point(textBox4.Text.ToDouble(), textBox5.Text.ToDouble()), textBox1.Text.ToDouble(), textBox2.Text.ToDouble(), textBox3.Text.ToDouble(), Convert.ToInt32(numericUpDown1.Value), Convert.ToInt32(numericUpDown2.Value)); var fw = GetFmas(); Source source = new Source(c, fw); if (!tosource) { Forms.UG.SetSource(source); } else { Uxt.sources.Add(source); Uform.Recostract(); } this.Close(); }
private void button1_Click(object sender, EventArgs e) { double x = textBox1.Text.ToDouble(); double y = textBox4.Text.ToDouble(); double r = textBox5.Text.ToDouble(); int n = numericUpDown2.Value.ToInt32(); Waves.Circle c = new Waves.Circle(new МатКлассы.Point(x, y), r); Waves.Normal2D[] norm = c.GetNormalsOnCircle(n); Source s = new Source(c, norm, GetFmas()); if (Get) { Forms.UG.SetSource(s); } else { Uxt.sources.Add(s); Uform.Recostract(); } this.Close(); }