123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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 Action10121 : ParamObject
- {
- public Action10121() {
- this.MenuId = ActionType.LengthSpecialMeasure;
- //直线颜色
- ColorNumber one = new ColorNumber();
- one.key = "parameter1";
- one.name = "直线颜色";
- one.Value = Color.Blue.ToArgb();
- lists.Add(one);
- //直线线宽
- IntegerNumber two = new IntegerNumber(1, 9999);
- two.key = "parameter2";
- two.name = "直线线宽";
- two.initialValue = 1;
- two.value = 1;
- lists.Add(two);
- //直线样式
- ChoiseArray three = new ChoiseArray("parameter3", "直线样式",
- new BooleanObject[]
- {
- new BooleanObject("0", "实线", true, null),
- new BooleanObject("1", "虚线(横)", false, null),
- new BooleanObject("2", "虚线(点)", false, null),
- new BooleanObject("3", "虚线(横 - 点)", false, null),
- new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
- });
- three.initialValue = 0;
- three.value = 0;
- lists.Add(three);
- //长度颜色
- ColorNumber four = new ColorNumber();
- four.key = "parameter4";
- four.name = "长度颜色";
- four.Value = Color.Blue.ToArgb();
- lists.Add(four);
- //长度线宽
- IntegerNumber five = new IntegerNumber(1, 9999);
- five.key = "parameter5";
- five.name = "长度线宽";
- five.initialValue = 1;
- five.value = 1;
- lists.Add(five);
- //长度样式
- ChoiseArray six = new ChoiseArray("parameter6", "长度样式",
- new BooleanObject[]
- {
- new BooleanObject("0", "实线", true, null),
- new BooleanObject("1", "虚线(横)", false, null),
- new BooleanObject("2", "虚线(点)", false, null),
- new BooleanObject("3", "虚线(横 - 点)", false, null),
- new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
- });
- six.initialValue = 0;
- six.value = 0;
- lists.Add(six);
- //平行线颜色
- ColorNumber seven = new ColorNumber();
- seven.key = "parameter7";
- seven.name = "平行线颜色";
- seven.Value = Color.Blue.ToArgb();
- lists.Add(seven);
- //平行线线宽
- IntegerNumber eight = new IntegerNumber(1, 9999);
- eight.key = "parameter8";
- eight.name = "平行线线宽";
- eight.initialValue = 1;
- eight.value = 1;
- lists.Add(eight);
- //平行线样式
- ChoiseArray nine = new ChoiseArray("parameter9", "平行线样式",
- new BooleanObject[]
- {
- new BooleanObject("0", "实线", true, null),
- new BooleanObject("1", "虚线(横)", false, null),
- new BooleanObject("2", "虚线(点)", false, null),
- new BooleanObject("3", "虚线(横 - 点)", false, null),
- new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
- });
- nine.initialValue = 0;
- nine.value = 0;
- lists.Add(nine);
- //小数
- IntegerNumber CalculatorDecimalDigits = new IntegerNumber(0, 10);
- CalculatorDecimalDigits.key = "CalculatorDecimalDigits";
- CalculatorDecimalDigits.name = "小数点位数";
- CalculatorDecimalDigits.initialValue = 2;
- CalculatorDecimalDigits.value = 2;
- lists.Add(CalculatorDecimalDigits);
- lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
- }
- }
- }
|