ToolTimeMark.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. namespace PaintDotNet.Annotation.Label
  5. {
  6. /// <summary>
  7. /// 标注->标记->日期
  8. /// </summary>
  9. public class ToolTimeMark : ToolObject
  10. {
  11. private static Cursor cursor = new Cursor(PdnResources.GetResourceStream("Cursors.AnnotationRectangle.cur"));
  12. public static void OnMouseDown(ISurfaceBox drawArea, MouseEventArgs e)
  13. {
  14. string nowTime = DateTime.Now.ToString("HH:mm:ss");
  15. DrawTimeMark timeMark = new DrawTimeMark(drawArea, nowTime);
  16. timeMark.ISurfaceBox = drawArea;
  17. AddNewObject(drawArea, timeMark);
  18. OnMouseUpTwo(drawArea, e);
  19. }
  20. public static void OnMouseMove(ISurfaceBox drawArea, MouseEventArgs e)
  21. {
  22. }
  23. public static void OnMouseUp(ISurfaceBox drawArea, MouseEventArgs e)
  24. {
  25. }
  26. public static void OnMouseClick(ISurfaceBox surfacebox, MouseEventArgs e)
  27. {
  28. }
  29. /// <summary>
  30. /// 鼠标左键双击
  31. /// </summary>
  32. /// <param name="drawArea"></param>
  33. /// <param name="e"></param>
  34. public static void OnMouseLeftDoubleClick(ISurfaceBox surfacebox, MouseEventArgs e)
  35. {
  36. }
  37. /// <summary>
  38. /// 删除按键
  39. /// </summary>
  40. /// <param name="surfacebox"></param>
  41. /// <param name="e"></param>
  42. public static void OnDelKeyDown(ISurfaceBox surfacebox, MouseEventArgs e)
  43. {
  44. }
  45. /// <summary>
  46. /// 删除划痕处理&污迹处理选择区域的痕迹
  47. /// </summary>
  48. /// <param name="surfacebox"></param>
  49. /// <param name="e"></param>
  50. public static void OnDel2KeyDown(ISurfaceBox surfacebox, MouseEventArgs e)
  51. {
  52. }
  53. public static void beginWithNewObject()
  54. {
  55. }
  56. }
  57. }