Exemplo n.º 1
0
        private void SetData()
        {
            try
            {
                milkCollectionLogic = new MilkCollectionLogic();
                var model = Factories.CreateMilkCollection().Get(id);

                dtDate.Value              = model.ActualDate;
                cboFarmer.SelectedItem    = LocalUtils.GetSelectedByNameItemX(cboFarmer.Items, model.FullName);
                cboMilkClass.SelectedItem = LocalUtils.GetSelectedByNameItemX(cboMilkClass.Items, model.MilkClass);
                txtVolume.Text            = model.Volume.ToString();;
            }
            catch (Exception)
            {
                throw;
            }
        }