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;
|
|
namespace SA_LTT_UI.Screen
|
{
|
public partial class AnalogBar : UserControl
|
{
|
private int _number;
|
private string _description;
|
private double _value;
|
|
public double Value
|
{
|
get
|
{
|
return _value;
|
}
|
|
set
|
{
|
_value = value;
|
lb_Value.Text = $"{_value}";
|
}
|
}
|
|
public AnalogBar(int number, string description)
|
{
|
InitializeComponent();
|
|
_number = number;
|
_description = description;
|
|
lb_Value.Tag = _number;
|
lb_Number.Text = $"{_number}";
|
lb_Description.Text = description;
|
}
|
|
public void AddClickEvent(ClickEvent clicked)
|
{
|
lb_Value.Click += new EventHandler(clicked);
|
}
|
}
|
}
|