1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using PaintDotNet.Base.CommTool;
- using PaintDotNet.Base.SettingModel;
- using PaintDotNet.Data.Param;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace PaintDotNet.Data.Action
- {
- public class Action110152 : Action11015
- {
- public Action110152()
- {
- this.MenuId = ActionType.BandedStructureGBT344742;
- //使用网格
- BandedTissueDialogModel microstructureBandModel = XmlSerializeHelper.DESerializer<BandedTissueDialogModel>(FileOperationHelper.ReadStringFromFile(Application.StartupPath + "\\Config\\" + "Default" + "\\BandedTissueDialogModel.xml", FileMode.Open));
- BooleanObject[] booleanObjects;
- if (microstructureBandModel.GridStyleList != null && microstructureBandModel.GridStyleList.Count > 0)
- {
- booleanObjects = new BooleanObject[microstructureBandModel.GridStyleList.Count];
- int i = 0;
- foreach (var grid in microstructureBandModel.GridStyleList)
- {
- booleanObjects.SetValue(new BooleanObject(i.ToString(), grid.gridName, true, null), i);
- i++;
- }
- }
- else
- {
- booleanObjects = new BooleanObject[]
- {
- new BooleanObject("0", "网格1", true, null)
- };
- }
- ChoiseArray one = new ChoiseArray("parameter1", PdnResources.GetString("Menu.Usegrid.text"), booleanObjects);
- one.initialValue = 0;
- one.value = 0;
- lists.Add(one);
- }
- }
- }
|