12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using PaintDotNet.Data.Param;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PaintDotNet.Data.Action
- {
- public class Action1003 : ParamObject
- {
- public Action1003() {
-
- this.MenuId = ActionType.TwoComparisonCases;
- //多相数量
- ChoiseArray one = new ChoiseArray("parameter1", "筛选方式",
- new BooleanObject[]
- {
- new BooleanObject("1", "面积", true, null),
- new BooleanObject("2", "面积比", false, null),
- new BooleanObject("3", "周长", false, null),
- new BooleanObject("4", "短轴", false, null),
- new BooleanObject("5", "长轴",false, null),
- new BooleanObject("6", "倾斜角度", false, null),
- new BooleanObject("7", "高度",false, null),
- new BooleanObject("8", "宽度", false, null),
- new BooleanObject("9", "宽高比",true, null),
- new BooleanObject("10", "长径",false, null),
- new BooleanObject("11", "短径",false, null),
- new BooleanObject("12", "外接圆直径", false, null),
- new BooleanObject("13", "球化率",false, null),
- new BooleanObject("14", "等积圆直径", false, null),
- new BooleanObject("15", "最大卡规直径",false, null),
- new BooleanObject("16", "最小卡规直径", false, null),
- new BooleanObject("17", "平均卡规直径", false, null),
- new BooleanObject("18", "纤维长度", false, null),
- }
- );
- one.initialValue = 1;
- one.value = 1;
- lists.Add(one);
- //小数
- 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));
- }
- }
- }
|