Ejemplo n.º 1
0
 private void pn_Paint(object sender, PaintEventArgs e)
 {
     SplintComponent SplintCompontent =
         new SplintComponent(
             (Tag as TfMain).dsSplints, (Tag as TfMain).dsLines, Convert.ToInt32(lcb.SelectedValue),
             StartType, Convert.ToDouble(edValue.Value), 0, 0);
     CanvasView View = new CanvasView(20, 20, 0, 200, true);
     Pointer Start = new Pointer(0, 0, -Math.PI / 2);
     View = View.AutoZoom(SplintCompontent.Border(View, Start), pn.Width, pn.Height, 0.15, 0.25);
     View = View.AutoStart(SplintCompontent.Border(View, Start), pn.Width, pn.Height);
     SplintCompontent.Draw(e.Graphics, View, Start, new Pen(Color.Black, 2));
     DrawEx.DrawZoom(e.Graphics, View, pn.Width, pn.Height);
 }