Ejemplo n.º 1
0
        private void RandomAddClicked(object sender, EventArgs e)
        {
            var factory = FactoryExtension.RandomFactory();

            if (factory != null)
            {
                Factories.AddFactory(factory);
            }
            UpdateListBox();
        }
Ejemplo n.º 2
0
        private void ManualAddCLicked(object sender, EventArgs e)
        {
            var factoryForm = new NewFactoryForm();

            factoryForm.ShowDialog();
            if (factoryForm.DialogResult == DialogResult.Yes)
            {
                if (factoryForm.NewFactory != null)
                {
                    Factories.AddFactory(factoryForm.NewFactory);
                }
                UpdateListBox();
            }
        }