예제 #1
0
 private void Paint_panel_MouseUp(object sender, MouseEventArgs e)
 {
     if (obj != null)
     {
         obj.Finish1 = e.Location;
         buf.Add(obj);
     }
     obj             = new Line();
     flag_mouseclick = false;
     Paint_panel.Invalidate();
 }
예제 #2
0
 /// <summary>
 /// Открыть файл
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     buf.Open();
     Paint_panel.Invalidate();
 }
예제 #3
0
 /// <summary>
 /// Вернуть изменение
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void reDoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     buf.drawStep();
     Paint_panel.Invalidate();
 }