123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- 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 Action11014 : ParamObject
- {
- public Action11014() {
- //线长
- IntegerNumber one = new IntegerNumber(1, 50);
- one.key = "parameter1";
- one.name = PdnResources.GetString("Menu.Linelength.text");
- one.initialValue = 1;
- one.value = 1;
- lists.Add(one);
- //线宽
- IntegerNumber two = new IntegerNumber(1, 50);
- two.key = "parameter2";
- two.name = PdnResources.GetString("Menu.Linewidth.text");
- two.initialValue = 1;
- two.value = 1;
- lists.Add(two);
- //基准线
- ColorNumber three = new ColorNumber();
- three.key = "parameter3";
- three.name = "基准线";
- three.Value = Color.Red.ToArgb();
- lists.Add(three);
- //勾选完全脱碳层
- BooleanObject four = new BooleanObject();
- four.key = "parameter4";
- four.name = "是否勾选" + PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
- four.initialValue = false;
- four.Value = false;
- lists.Add(four);
- //完全脱碳层
- ColorNumber five = new ColorNumber();
- five.key = "parameter5";
- five.name = PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
- five.Value = Color.Green.ToArgb();
- lists.Add(five);
- //钢样表面
- ColorNumber six = new ColorNumber();
- six.key = "parameter6";
- six.name = "钢样表面";
- six.Value = Color.Blue.ToArgb();
- lists.Add(six);
- //勾选有效脱碳层
- BooleanObject seven = new BooleanObject();
- seven.key = "parameter7";
- seven.name = "是否勾选" + PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
- seven.initialValue = false;
- seven.Value = false;
- lists.Add(seven);
- //有效脱碳层
- ColorNumber eight = new ColorNumber();
- eight.key = "parameter8";
- eight.name = PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
- eight.Value = Color.Pink.ToArgb();
- lists.Add(eight);
- //勾选部分脱碳层
- BooleanObject nine = new BooleanObject();
- nine.key = "parameter9";
- nine.name = "是否勾选" + PdnResources.GetString("Menu.Partiallydecarburizedlayer.text");
- nine.initialValue = false;
- nine.Value = false;
- lists.Add(nine);
- //部分脱碳层
- ColorNumber ten = new ColorNumber();
- ten.key = "parameter10";
- ten.name = PdnResources.GetString("Menu.Partiallydecarburizedlayer.text");
- ten.Value = Color.Yellow.ToArgb();
- lists.Add(ten);
- //测量层-完全脱碳层
- BooleanObject eleven = new BooleanObject();
- eleven.key = "parameter11";
- eleven.name = "测量层" + PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
- eleven.initialValue = false;
- eleven.Value = false;
- lists.Add(eleven);
- //测量层-有效脱碳层
- BooleanObject twelve = new BooleanObject();
- twelve.key = "parameter12";
- twelve.name = "测量层" + PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
- twelve.initialValue = false;
- twelve.Value = false;
- lists.Add(twelve);
- 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));
- }
- }
- }
|