private void DelegateFactoryData(string name, int height, int width)
        {
            int factoryId = csu.createFactory(name, width, height);

            if (factoryId != -1)
            {
                ResizeGrid(height, width);

                InitFactoryPulldown();

                FactoryDropdown.SelectedItem = HelperFunctions.ToString(factoryId, name);
                InitSimulationPulldown();
                grid.UpdateModel();
            }
        }