private void button1_Click(object sender, EventArgs e) { int _N = System.Convert.ToInt32(DL_N.Text); int _M1 = System.Convert.ToInt32(DL_M1.Text); int _M2 = System.Convert.ToInt32(DL_M2.Text); int _M3 = System.Convert.ToInt32(DL_M3.Text); Draw_Line.CreateDat(_N, _M1, _M2, _M3); XMin = System.Convert.ToDouble(xmin_t.Text); XMax = System.Convert.ToDouble(xmax_t.Text); YMin = System.Convert.ToDouble(ymin_t.Text); YMax = System.Convert.ToDouble(ymax_t.Text); double X0 = System.Convert.ToDouble(x0.Text); double Y0 = System.Convert.ToDouble(y0.Text); double epcilon = System.Convert.ToDouble(epc.Text); x = new List <double>(2) { X0, Y0 }; shor = new ShorMethod(epcilon, x, 2, System.Convert.ToInt32(alfa.Text), ksi, 200); Draw_Line.SetDat(XMin, XMax, YMin, YMax, false); pic.Invalidate(); }
private void button1_Click(object sender, EventArgs e) { int _N = System.Convert.ToInt32(DL_N.Text); int _M1 = System.Convert.ToInt32(DL_M1.Text); int _M2 = System.Convert.ToInt32(DL_M2.Text); int _M3 = System.Convert.ToInt32(DL_M3.Text); Draw_Line.CreateDat(_N,_M1,_M2,_M3); XMin = System.Convert.ToDouble(xmin_t.Text); XMax = System.Convert.ToDouble(xmax_t.Text); YMin = System.Convert.ToDouble(ymin_t.Text); YMax = System.Convert.ToDouble(ymax_t.Text); double X0 = System.Convert.ToDouble(x0.Text); double Y0 = System.Convert.ToDouble(y0.Text); double epcilon = System.Convert.ToDouble(epc.Text); x = new List<double>(2) { X0, Y0 }; shor = new ShorMethod(epcilon, x, 2, System.Convert.ToInt32(alfa.Text), ksi, 200); Draw_Line.SetDat(XMin,XMax,YMin,YMax,false); pic.Invalidate(); }