1234567891011121314151617181920212223242526272829303132333435 |
- using PaintDotNet.Base;
- using PaintDotNet.CustomControl;
- using System;
- using System.Windows.Forms;
- namespace PaintDotNet.Data.Param
- {
- /// <summary>
- /// 颜色选择
- /// </summary>
- public class ColorNumber : Args
- {
- public void numberParam_ValueChanged(object sender, EventArgs e)
- {
- this.Value = ((Panel)sender).BackColor.ToArgb();
- }
- public ColorNumber()
- {
- this.Type = Dtryt.Color;
- }
- public int Color
- {
- get
- {
- return (int)this.Value;
- }
- set
- {
- this.Value = value;
- }
- }
- }
- }
|