You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/Form1Action.cs

33 lines
943 B
C#

using Mesnac.Action.Base;
using Mesnac.Controls.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.Test
{
class Form1Action : DatabaseAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须调用
//SelectWeightAction.MaterialSynchronousComplete += delegate (object sender, EventArgs e)
//{
// ComboBox comboBox = base.GetControlById("MCCombobox1") as ComboBox;
// comboBox.SelectedIndex = 1;
//};
var list = GetAllMCControls();
foreach (IBaseControl ib in GetAllMCControls())
{
}
//ShowMsg("小料Action事件测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}