private void SaveButton_Click(object sender, EventArgs e) { manager.Add(new Models.ControllerInfo() { ConfigurationClass = ConfigurationComboBox.Text, Type = (Models.ControllerType)Enum.Parse(typeof(Models.ControllerType), TypeComboBox.Text), ControllerClass = ControllerComboBox.Text, FriendlyName = FriendlyNameTextBox.Text }); Close(); }