Ejemplo n.º 1
0
 public Bottle(uint pickId, BottleProperties bottleProp, CylPosition position)
 {
     PickId   = pickId;
     Profile  = bottleProp.Profile;
     Color    = bottleProp.Color;
     Position = position;
 }
Ejemplo n.º 2
0
 public Bottle(uint pickId, BottleProperties bottleProp)
     : base(pickId)
 {
     PickId  = pickId;
     Profile = bottleProp.Profile;
     Color   = bottleProp.Color;
 }
Ejemplo n.º 3
0
        public FormNewBottle(Document document, BottleProperties bottle)
            : base(document, bottle)
        {
            InitializeComponent();
            cbBottleType.SelectedIndex = 0;

            if (null == bottle)
            {
                Initialize(0);
                Weight      = 1.0;
                ColorBottle = Color.DeepSkyBlue;
            }
            else
            {
                Profile     = bottle.Profile;
                Weight      = bottle.Weight;
                ColorBottle = bottle.Color;
                FillGrid();
            }
        }