Ejemplo n.º 1
0
        private void lstEventTriggers_Click(object sender, int row, int col)
        {
            try
            {
                switch (col)
                {
                case EventTriggersList.Enabled:
                    bool enabled = (bool)lstEventTriggers[row][col][0];

                    if (enabled)
                    {
                        EventTriggers[row].Enable();
                    }
                    else
                    {
                        EventTriggers[row].Disable();
                    }

                    SaveSettings();

                    break;

                case EventTriggersList.Delete:
                    EventTriggers.RemoveAt(row);
                    RefreshEventTriggerList();

                    SaveSettings();

                    break;

                default:
                    PrintEventTrigger(EventTriggers[row]);

                    break;
                }
            }
            catch (Exception ex)
            {
                Util.LogError(ex);
            }
        }