Example #1
0
 public PrismDialog()
 {
     InitializeComponent();
     DotsArray = null;
     last_dot  = new Point();
     Func_Move = null;
     number    = 0;
 }
Example #2
0
        private void PrismDialog_MouseDown(object sender, MouseEventArgs e)
        {
            if (MouseButtons.Left == e.Button)
            {
                if (PreObj != null)
                {
                    Func_Move = PreObj.IsSelect(new PointF(e.X, e.Y));

                    last_dot.X = e.X;
                    last_dot.Y = e.Y;
                }
            }
        }
Example #3
0
        private void PrismDialog_MouseUp(object sender, MouseEventArgs e)
        {
            if (Func_Move != null)
            {
                PointF[] tmp = new PointF[number];
                PreObj.GetPrism.CopyTo(tmp, 0);
                TextCoord.Text = null;

                for (int i = 0; i != tmp.Length; i++)
                {
                    TextCoord.Text += tmp[i].X + " " + tmp[i].Y + ";";
                }
            }
            Func_Move = null;
        }