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); } } }