private void buttonAccept_Click(object sender, EventArgs e) { if (this.comboAlerts.SelectedItem == null) { return; } this.Hide(); AlertFactoryInterface factory = (AlertFactoryInterface)comboAlerts.SelectedItem; newAlert = factory.Create(this.charname); this.Close(); }
private void selectAlert(AlertInterface alert) { this.selectedAlert = alert; refreshGui(); }