Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            //try
            //{
            double tempMul = Convert.ToDouble(tbMul.Text);

            List <List <Point> > tempPtList = new List <List <Point> >();

            foreach (List <Point> ptl in _drawPoints)
            {
                tempPtList.Add(new List <Point>());

                //反转Y坐标
                foreach (Point pt in ptl)
                {
                    Point tpt = new Point();
                    tpt.Y = this.Height - pt.Y - 37;
                    tpt.X = pt.X;
                    tempPtList[tempPtList.Count - 1].Add(tpt);
                }
            }
            ChangePic?.Invoke(tempPtList, tempMul);                    //执行委托实例
            //}
            //catch
            //{
            //	MessageBox.Show("数据传递出错");
            //}
        }
 public FormMessage(string message, ChangePic pic)
 {
     InitializeComponent();
     labelMessage.Text = message;
     Pic = pic;
 }