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 { public class Action110161 : ActionAnalysis { public Action110161() { this.MenuId = ActionType.HighSpeedSteelCarbonBlockGB4462; //筛选 BooleanObject one = new BooleanObject(); one.key = "parameter1"; one.name = PdnResources.GetString("Menu.filter.text"); one.initialValue = false; one.Value = false; lists.Add(one); //筛选下限 IntegerNumber two = new IntegerNumber(0, 10000); two.key = "parameter2"; two.name = PdnResources.GetString("Menu.filter.text") + "下限"; two.initialValue = 0; two.value = 0; lists.Add(two); //筛选上限 IntegerNumber three = new IntegerNumber(0, 10000); three.key = "parameter3"; three.name = PdnResources.GetString("Menu.filter.text") + "上限"; three.initialValue = 0; three.value = 0; lists.Add(three); //高速工具钢类别 ChoiseArray four = new ChoiseArray("parameter4", "高速工具钢类别", new BooleanObject[] { new BooleanObject("1", "钨系", true, null), new BooleanObject("2", "钼系", false, null) } ); four.initialValue = 1; four.value = 1; lists.Add(four); //系列 ChoiseArray five = new ChoiseArray("parameter5", "系列", new BooleanObject[] { new BooleanObject("1", "A列", true, null), new BooleanObject("2", "B列", false, null) } ); five.initialValue = 1; five.value = 1; lists.Add(five); //最大尺寸碳化物颜色 ColorNumber six = new ColorNumber(); six.key = "parameter6"; six.name = "最大尺寸碳化物颜色"; six.Value = Color.Green.ToArgb(); lists.Add(six); } } }