Esempio n. 1
0
 private void Paint_panel_MouseMove(object sender, MouseEventArgs e)
 {
     if (flag_mouseclick && !flag_eraser)
     {
         if (obj != null)
         {
             obj.Finish1 = e.Location;
             Paint_panel.Refresh();
         }
     }
     else if (flag_mouseclick && flag_eraser)
     {
         if (obj != null)
         {
             obj.path.Add(e.Location);
             Paint_panel.Refresh();
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Откатить изменение
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void unDoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     buf.unDrawStep();
     Paint_panel.Refresh();
 }