Beispiel #1
0
        private void OkBtn_Click(object sender, EventArgs e)
        {
            if (EventTypeBox.SelectedItem == null)
            {
                MessageBox.Show("You must select an event type.");
                return;
            }

            Event        = TAE3.Event.EventFromType((TAE3.EventType)EventTypeBox.SelectedItem);
            GroupIndex   = (int)EventGroupBox.Value;
            DialogResult = DialogResult.OK;
            Close();
        }
Beispiel #2
0
 private void OkBtn_Click(object sender, EventArgs e)
 {
     if (EventTypeBox.SelectedItem == null)
     {
         MessageBox.Show("You must select an event type.");
         return;
     }
     if (Game == Games.Sekiro)
     {
         Event4 = TAE4.Event.EventFromType((TAE4.EventType)EventTypeBox.SelectedItem);
     }
     else if (Game == Games.DS3)
     {
         Event3 = TAE3.Event.EventFromType((TAE3.EventType)EventTypeBox.SelectedItem);
     }
     else
     {
         Event2 = TAE2.Event.EventFromType((TAE2.EventType)EventTypeBox.SelectedItem);
     }
     GroupIndex   = (int)EventGroupBox.Value;
     DialogResult = DialogResult.OK;
     Close();
 }