Exemple #1
0
        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();
        }
Exemple #2
0
        private void selectAlert(AlertInterface alert)
        {
            this.selectedAlert = alert;

            refreshGui();
        }