|
|
@ -20,6 +20,9 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
private string[] sImages = new String[7];
|
|
|
|
private string[] sImages = new String[7];
|
|
|
|
private string[] sImagesL = new String[7];
|
|
|
|
private string[] sImagesL = new String[7];
|
|
|
|
private string[] sImagesR = new String[7];
|
|
|
|
private string[] sImagesR = new String[7];
|
|
|
|
|
|
|
|
private string[] sImagesCL = new String[7];
|
|
|
|
|
|
|
|
private string[] sImagesCR = new String[7];
|
|
|
|
|
|
|
|
private string[] sImagesFR = new String[7];
|
|
|
|
private bool _zltValue;
|
|
|
|
private bool _zltValue;
|
|
|
|
private bool _zldValue;
|
|
|
|
private bool _zldValue;
|
|
|
|
private bool _almtValue;
|
|
|
|
private bool _almtValue;
|
|
|
@ -50,6 +53,7 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
//三个都通
|
|
|
|
//三个都通
|
|
|
|
sImages[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveAll.png";
|
|
|
|
sImages[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sImagesL[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveL0.png";
|
|
|
|
sImagesL[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveL0.png";
|
|
|
|
//直通
|
|
|
|
//直通
|
|
|
|
sImagesL[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveL1.png";
|
|
|
|
sImagesL[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveL1.png";
|
|
|
@ -64,6 +68,7 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
//三个都通
|
|
|
|
//三个都通
|
|
|
|
sImagesL[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveLAll.png";
|
|
|
|
sImagesL[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveLAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sImagesR[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveR0.png";
|
|
|
|
sImagesR[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveR0.png";
|
|
|
|
//直通
|
|
|
|
//直通
|
|
|
|
sImagesR[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveR1.png";
|
|
|
|
sImagesR[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveR1.png";
|
|
|
@ -79,6 +84,51 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
sImagesR[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveRAll.png";
|
|
|
|
sImagesR[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveRAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sImagesCL[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCL0.png";
|
|
|
|
|
|
|
|
//直通
|
|
|
|
|
|
|
|
sImagesCL[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCL1.png";
|
|
|
|
|
|
|
|
//斜通
|
|
|
|
|
|
|
|
sImagesCL[2] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCL2.png";
|
|
|
|
|
|
|
|
//直通报警通知
|
|
|
|
|
|
|
|
sImagesCL[3] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCLHError.png";
|
|
|
|
|
|
|
|
//斜通报警通知
|
|
|
|
|
|
|
|
sImagesCL[4] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCLVError.png";
|
|
|
|
|
|
|
|
//都报警
|
|
|
|
|
|
|
|
sImagesCL[5] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCLHVError.png";
|
|
|
|
|
|
|
|
//三个都通
|
|
|
|
|
|
|
|
sImagesCL[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCLAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sImagesCR[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCR0.png";
|
|
|
|
|
|
|
|
//直通
|
|
|
|
|
|
|
|
sImagesCR[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCR1.png";
|
|
|
|
|
|
|
|
//斜通
|
|
|
|
|
|
|
|
sImagesCR[2] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCR2.png";
|
|
|
|
|
|
|
|
//直通报警通知
|
|
|
|
|
|
|
|
sImagesCR[3] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCRHError.png";
|
|
|
|
|
|
|
|
//斜通报警通知
|
|
|
|
|
|
|
|
sImagesCR[4] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCRVError.png";
|
|
|
|
|
|
|
|
//都报警
|
|
|
|
|
|
|
|
sImagesCR[5] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCRHVError.png";
|
|
|
|
|
|
|
|
//三个都通
|
|
|
|
|
|
|
|
sImagesCR[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveCRAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sImagesFR[0] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFR0.png";
|
|
|
|
|
|
|
|
//直通
|
|
|
|
|
|
|
|
sImagesFR[1] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFR1.png";
|
|
|
|
|
|
|
|
//斜通
|
|
|
|
|
|
|
|
sImagesFR[2] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFR2.png";
|
|
|
|
|
|
|
|
//直通报警通知
|
|
|
|
|
|
|
|
sImagesFR[3] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFRHError.png";
|
|
|
|
|
|
|
|
//斜通报警通知
|
|
|
|
|
|
|
|
sImagesFR[4] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFRVError.png";
|
|
|
|
|
|
|
|
//都报警
|
|
|
|
|
|
|
|
sImagesFR[5] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFRHVError.png";
|
|
|
|
|
|
|
|
//三个都通
|
|
|
|
|
|
|
|
sImagesFR[6] = "Mesnac.Controls.ChemicalWeighing.Resources.ThreeWayValveFRAll.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -143,6 +193,15 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImagesR[defaultIndex]);
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImagesR[defaultIndex]);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImagesCL[defaultIndex]);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImagesCR[defaultIndex]);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 5:
|
|
|
|
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImagesFR[defaultIndex]);
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImages[defaultIndex]);
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream(sImages[defaultIndex]);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -257,7 +316,7 @@ namespace Mesnac.Controls.ChemicalWeighing
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 控件种类 0斜通在下 1斜通在左 2斜通在右
|
|
|
|
/// 控件种类 0向右斜通在下 1向上斜通在左 2向上斜通在右 3向左斜通在上 4向右斜通在上 5向下斜通在右
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public int ControlKind
|
|
|
|
public int ControlKind
|
|
|
|
{
|
|
|
|
{
|
|
|
|