123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- using PaintDotNet.Data.Param;
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 计数统计
- /// </summary>
- public class Action1013 : ParamObject
- {
- public Action1013() {
- this.MenuId = ActionType.CountStatistics;
- //形状
- ChoiseArray one = new ChoiseArray("parameter1", "1点设置形状",
- new BooleanObject[]
- {
- new BooleanObject("1", "圆形", true, null),
- new BooleanObject("2", "方形", false, null),
- }
- );
- one.initialValue = 1;
- one.value = 1;
- lists.Add(one);
- //样式
- ChoiseArray two = new ChoiseArray("parameter2", "1点设置样式",
- new BooleanObject[]
- {
- new BooleanObject("1", "实心", true, null),
- new BooleanObject("2", "空心", false, null),
- }
- );
- two.initialValue = 1;
- two.value = 1;
- lists.Add(two);
- //1点设置尺寸
- IntegerNumber three = new IntegerNumber(1, 9999);
- three.key = "parameter3";
- three.name = "1点设置尺寸";
- three.initialValue = 30;
- three.value = 30;
- lists.Add(three);
- //1点设置线宽
- IntegerNumber four = new IntegerNumber(1, 9999);
- four.key = "parameter4";
- four.name = "1点设置线宽";
- four.initialValue = 2;
- four.value = 2;
- lists.Add(four);
- //1点设置颜色
- ColorNumber five = new ColorNumber();
- five.key = "parameter5";
- five.name = "1点设置颜色";
- five.Value = Color.Blue.ToArgb();
- lists.Add(five);
- //形状
- ChoiseArray ten = new ChoiseArray("parameter10", "0.5点设置形状",
- new BooleanObject[]
- {
- new BooleanObject("1", "圆形", true, null),
- new BooleanObject("2", "方形", false, null),
- }
- );
- ten.initialValue = 1;
- ten.value = 1;
- lists.Add(ten);
- //样式
- ChoiseArray eleven = new ChoiseArray("parameter11", "0.5点设置样式",
- new BooleanObject[]
- {
- new BooleanObject("1", "实心", true, null),
- new BooleanObject("2", "空心", false, null),
- }
- );
- eleven.initialValue = 1;
- eleven.value = 1;
- lists.Add(eleven);
- //0.5点设置尺寸
- IntegerNumber six = new IntegerNumber(1, 9999);
- six.key = "parameter6";
- six.name = "0.5点设置尺寸";
- six.initialValue = 30;
- six.value = 30;
- lists.Add(six);
- //0.5点设置线宽
- IntegerNumber seven = new IntegerNumber(1, 9999);
- seven.key = "parameter7";
- seven.name = "0.5点设置线宽";
- seven.initialValue = 2;
- seven.value = 2;
- lists.Add(seven);
- //0.5点设置颜色
- ColorNumber eight = new ColorNumber();
- eight.key = "parameter8";
- eight.name = "0.5点设置颜色";
- eight.Value = Color.Yellow.ToArgb();
- lists.Add(eight);
- //小数
- IntegerNumber nine = new IntegerNumber(0, 10);
- nine.key = "CalculatorDecimalDigits";
- nine.name = "小数点位数";
- nine.initialValue = 2;
- nine.value = 2;
- lists.Add(nine);
- lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
- }
- }
- }
|