예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            this.panel1.Controls.Clear();
            //Thread.Sleep(1);

            Tools.Perform(int.Parse(num.Text));
            arr = Tools.ButtonArray;
            Tools.Draw();
        }
예제 #2
0
        private void pbImg_MouseMove(object sender, MouseEventArgs e)
        {
            Thread.Sleep(6);//减少cpu占用率
            mousePostion.Text = e.Location.ToString();
            if (tools.startDraw)
            {
                switch (sType)
                {
                case "Dot": tools.DrawDot(e); break;

                case "Eraser": tools.Eraser(e); break;

                case "Word": tools.DrawWord(e); break;

                default: tools.Draw(e, sType); break;
                }
            }
        }