コード例 #1
0
 private void pictureBox_MouseMove(object sender, MouseEventArgs e)
 {
     if (drawer.started)
     {
         drawer.Draw(e.Location);
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: zhengissov/PT2017
        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
        {
            if (drawer.ok)
            {
                drawer.Draw(e.Location);
            }

            pictureBox1.Refresh();
            mouseLocationLabel.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
        }