ColorNumber.cs 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. using PaintDotNet.Base;
  2. using PaintDotNet.CustomControl;
  3. using System;
  4. using System.Windows.Forms;
  5. namespace PaintDotNet.Data.Param
  6. {
  7. /// <summary>
  8. /// 颜色选择
  9. /// </summary>
  10. public class ColorNumber : Args
  11. {
  12. public void numberParam_ValueChanged(object sender, EventArgs e)
  13. {
  14. this.Value = ((Panel)sender).BackColor.ToArgb();
  15. }
  16. public ColorNumber()
  17. {
  18. this.Type = Dtryt.Color;
  19. }
  20. public int Color
  21. {
  22. get
  23. {
  24. return (int)this.Value;
  25. }
  26. set
  27. {
  28. this.Value = value;
  29. }
  30. }
  31. }
  32. }