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(); }
/// <summary> /// Открыть файл /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openToolStripMenuItem_Click(object sender, EventArgs e) { buf.Open(); Paint_panel.Invalidate(); }
/// <summary> /// Вернуть изменение /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void reDoToolStripMenuItem_Click(object sender, EventArgs e) { buf.drawStep(); Paint_panel.Invalidate(); }