using System; using System.Reflection; using System.Windows.Forms; namespace Mesnac.Controls.ChemicalWeighing { public partial class WayValve : ChemicalWeighingControl { public WayValve() { InitializeComponent(); } private string[] sImages = new String[3]; /// /// 杨威 /// 20230629 /// 初始化控件 /// private void InitControl() { _assembly = Assembly.GetExecutingAssembly(); //默认程序 sImages[0] = "Mesnac.Controls.ChemicalWeighing.Resources.WayValveDefault.png"; //直通Open sImages[1] = "Mesnac.Controls.ChemicalWeighing.Resources.WayValveOpen.png"; //斜通 sImages[2] = "Mesnac.Controls.ChemicalWeighing.Resources.WayValveError.png"; } } }