private void RandomAddClicked(object sender, EventArgs e) { var factory = FactoryExtension.RandomFactory(); if (factory != null) { Factories.AddFactory(factory); } UpdateListBox(); }
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(); } }