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/LjDeliver/ControlsHelper.cs

44 lines
1.1 KiB
C#

using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
using Mesnac.Action.ChemicalWeighing.LjDeliver.Entity;
using Mesnac.Action.ChemicalWeighing.Util;
using Mesnac.Controls.ChemicalWeighing;
using Mesnac.Controls.Default;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.LjDeliver
{
public class ControlsHelper : ControlsImprot
{
public static double NoNegative(double value)
{
if(value < 0)
{
return 0;
}
else
{
return value;
}
}
public static void SetTubeColor(SpecialLabelBlue tube, bool valve1, bool valve2)
{
if(valve1 && valve2)
{
tube.BackColor = Color.LightGreen;
}
else
{
tube.BackColor = Color.White;
}
}
}
}