123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- using PaintDotNet.Data.Param;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 多相含量
- /// </summary>
- public class Action1001 : ParamObject
- {
- public Action1001() {
- this.MenuId = ActionType.MultiphaseContent;
- //多相数量
- ChoiseArray one = new ChoiseArray("parameter1", "多相数量",
- new BooleanObject[]
- {
- new BooleanObject("1", "1", true, null),
- new BooleanObject("2", "2", false, null),
- new BooleanObject("3", "3", false, null),
- new BooleanObject("4", "4", false, null),
- new BooleanObject("5", "5", false, null),
- new BooleanObject("6", "6", false, null),
- new BooleanObject("7", "7", false, null),
- new BooleanObject("8", "8", false, null)
- }
- );
- one.initialValue = 0;
- one.value = 0;
- lists.Add(one);
- //勾选孔洞删除
- BooleanObject two = new BooleanObject();
- two.key = "parameter2";
- two.name = "勾选孔洞删除";
- two.initialValue = false;
- two.Value = false;
- lists.Add(two);
- //孔洞删除下限
- IntegerNumber three = new IntegerNumber(0, 10000000);
- three.key = "parameter3";
- three.name = "孔洞删除下限";
- three.initialValue = 0;
- three.value = 0;
- lists.Add(three);
- //孔洞删除上限
- IntegerNumber four = new IntegerNumber(0, 10000000);
- four.key = "parameter4";
- four.name = "孔洞删除上限";
- four.initialValue = 0;
- four.value = 0;
- lists.Add(four);
- //勾选碎屑删除
- BooleanObject five = new BooleanObject();
- five.key = "parameter5";
- five.name = "勾选碎屑删除";
- five.initialValue = false;
- five.Value = false;
- lists.Add(five);
- //碎屑删除下限
- IntegerNumber six = new IntegerNumber(0, 10000000);
- six.key = "parameter6";
- six.name = "碎屑删除下限";
- six.initialValue = 0;
- six.value = 0;
- lists.Add(six);
- //碎屑删除上限
- IntegerNumber seven = new IntegerNumber(0, 10000000);
- seven.key = "parameter7";
- seven.name = "碎屑删除上限";
- seven.initialValue = 0;
- seven.value = 0;
- lists.Add(seven);
- //小数
- IntegerNumber eight = new IntegerNumber(0, 10);
- eight.key = "CalculatorDecimalDigits";
- eight.name = "小数点位数";
- eight.initialValue = 2;
- eight.value = 2;
- lists.Add(eight);
- lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
- lists.Add(new BooleanObject("ExportResults", "导出结果", true, null));
- lists.Add(new BooleanObject("ExportReports", "生成报告", true, null));
- lists.Add(new BooleanObject("ExportProjects", "导出项目", true, null));
- }
- }
- }
|