ok, nella dll ho 1 classe derivata da Label:
codice:
namespace Sea.Store
{
public class Cells : Label
{
public enum STATUS
{
EMPTY,
MATERIAL,
FULL //non usato per il momento!
}
protected Color gradientColorOne = Color.White;
protected Color gradientColorTwo = Color.Blue;
public Cells(int x, int y, int w, int h, int id)
{
this.idCell = id;
this.Top = y;
this.Left = x;
this.Width = w;
this.Height = h;
this.AutoSize = false;
this.BorderStyle = BorderStyle.Fixed3D;
this.edited = false;
this.status = STATUS.EMPTY;
}
...
e una usercontrol:
codice:
namespace Sea.Store
{
public partial class LoadUnit : UserControl
{
private int _resize;
private Point _start;
private Cells Lu;
private SqlConnection scn;
private string NameLu;
//---------------------------------------------------------------------
public LoadUnit(SqlConnection connection, string nameLu, Size luSize)
{
InitializeComponent();
scn = connection;
...
grazie!