private void btnAddContainer_Click(object sender, EventArgs e) { bool coolable = false; bool valuable = false; int weight = Convert.ToInt32(nupWeight.Value); if (cbCoolable.Checked) { coolable = true; } if (cbValuable.Checked) { valuable = true; } for (int i = 0; i < nupAmount.Value; i++) { Logic.Container tempContainer = new Logic.Container(weight, valuable, coolable); lbContainers.Items.Add(tempContainer.ReturnContainerInfoString()); tempContainers.Add(tempContainer); } }
logic() { Figures = new Container(); CurientFigures = new List <int>(); countFigures = 0; }