public CreateProduction(CreateProductionController controller)
        {
            InitializeComponent();
            _controller = controller;

            GetTypeMaterial();
            GetTypeProduction();
            ShowProduction();

            UpdateForm += OnUpdateForm;
        }
        private void buttonChangeProduction_Click(object sender, EventArgs e)
        {
            if (_controller.ProductionList == null)
            {
                _controller.ProductionList = new List <Production>();
            }
            var newCreateProductionController   = new CreateProductionController(_controller.ProductionList);
            CreateProduction formProductionList = new CreateProduction(newCreateProductionController);

            if (formProductionList.ShowDialog() == DialogResult.OK)
            {
                var newProductionList = newCreateProductionController.ProductionList;
                _controller.ProductionList = newProductionList;
                foreach (var product in newProductionList)
                {
                    listBoxProduction.Items.Add(product);
                }
            }
            UpdateForm?.Invoke(this, e);
        }