public static Batch CreateBatch(int id, int amountOfFruit, Field field, int sellAbleAmount)
 {
     Batch batch = new Batch();
     batch.Id = id;
     batch.AmountOfFruit = amountOfFruit;
     batch.Field = field;
     batch.SellAbleAmount = sellAbleAmount;
     
     return batch;
 }
        public AddNewHarvestWindow()
        {
            Field field = new Field();
            field.Id = 1;

            InitializeComponent();
            FruitFieldController mueh = new FruitFieldController();

            mueh.AllFields.Add(field);
            foreach (Field filed in mueh.AllFields)
            {
                Button butn = new Button();
                butn.Content = filed;
     
                listBox.Items.Add(butn);
                
            }
        }