Exemple #1
0
 private void PopulateEventChoices()
 {
     try
     {
         chcEventTriggerEvent.Add(EVENTDESC.LOGIN, EVENTS.LOGIN);
         chcEventTriggerEvent.Add(EVENTDESC.LOGOFF, EVENTS.LOGOFF);
         chcEventTriggerEvent.Add(EVENTDESC.LEVEL, EVENTS.LEVEL);
         chcEventTriggerEvent.Add(EVENTDESC.DEATH, EVENTS.DEATH);
         chcEventTriggerEvent.Add(EVENTDESC.DROPONDEATH, EVENTS.DROPONDEATH);
     }
     catch (Exception ex)
     {
         Util.LogError(ex);
     }
 }
Exemple #2
0
        private void RefreshChatTriggerWebhookChoice()
        {
            try
            {
                chcChatTriggerWebhook.Clear();

                foreach (var webhook in Webhooks)
                {
                    chcChatTriggerWebhook.Add(webhook.Name, webhook);
                }

                chcChatTriggerWebhook.Selected = 0;
            }
            catch (Exception ex)
            {
                Util.LogError(ex);
            }
        }