12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace PaintDotNet.Annotation.Label
- {
- /// <summary>
- /// 标注->标记->日期
- /// </summary>
- public class ToolTimeMark : ToolObject
- {
- private static Cursor cursor = new Cursor(PdnResources.GetResourceStream("Cursors.AnnotationRectangle.cur"));
- public static void OnMouseDown(ISurfaceBox drawArea, MouseEventArgs e)
- {
- string nowTime = DateTime.Now.ToString("HH:mm:ss");
- DrawTimeMark timeMark = new DrawTimeMark(drawArea, nowTime);
- timeMark.ISurfaceBox = drawArea;
- AddNewObject(drawArea, timeMark);
- OnMouseUpTwo(drawArea, e);
- }
- public static void OnMouseMove(ISurfaceBox drawArea, MouseEventArgs e)
- {
-
- }
- public static void OnMouseUp(ISurfaceBox drawArea, MouseEventArgs e)
- {
- }
- public static void OnMouseClick(ISurfaceBox surfacebox, MouseEventArgs e)
- {
- }
- /// <summary>
- /// 鼠标左键双击
- /// </summary>
- /// <param name="drawArea"></param>
- /// <param name="e"></param>
- public static void OnMouseLeftDoubleClick(ISurfaceBox surfacebox, MouseEventArgs e)
- {
- }
- /// <summary>
- /// 删除按键
- /// </summary>
- /// <param name="surfacebox"></param>
- /// <param name="e"></param>
- public static void OnDelKeyDown(ISurfaceBox surfacebox, MouseEventArgs e)
- {
- }
- /// <summary>
- /// 删除划痕处理&污迹处理选择区域的痕迹
- /// </summary>
- /// <param name="surfacebox"></param>
- /// <param name="e"></param>
- public static void OnDel2KeyDown(ISurfaceBox surfacebox, MouseEventArgs e)
- {
- }
- public static void beginWithNewObject()
- {
- }
- }
- }
|