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/Controls/Mesnac.Controls.ChemicalWei.../BasketView.cs

78 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Mesnac.Controls.Base;
using Mesnac.Controls.ChemicalWeighing;
namespace Mesnac.Controls.ChemicalWeighing
{
[ToolboxBitmap(typeof(BasketView), "Resources.LiaoTong3.png")]
public partial class BasketView : ChemicalWeighingControl
{
string _statusName;
public string StatusName
{
get
{
return _statusName;
}
set
{
_statusName = value;
}
}
public enum Statuses
{
hide = 0, display = 1
}
Statuses _status;
public Statuses Status
{
get
{
return _status;
}
set
{
if (bFirstCreated == true)
{
bFirstCreated = false;
}
if ((int)value <= 0)
{
_status = (Statuses)0;
this.pictureBox1.Visible = false;
//_status = value;
}
else
{
_status = (Statuses)1;
this.pictureBox1.Visible = true;
//_status = value;
}
}
}
public BasketView():base()
{
InitializeComponent();
Init();
}
protected override void Init()
{
base.Init();
}
}
}