private void AddEventButton_Click(object sender, EventArgs e)
        {
            ScriptEvent l_Parent = GetCurrentScriptEvent(EventView.SelectedNode);

            EventManager l_Manager = new EventManager(new ScriptEvent(), true, l_Parent == null ? false : true, l_Parent == null ? new ScriptEvent() : l_Parent);
            l_Manager.ShowDialog(this);

            if (!l_Manager.IsCanceled)
                RefreshEventList();
        }
        private void EditEvent_Click(object sender, EventArgs e)
        {
            ScriptEvent l_Event = GetCurrentScriptEvent(EventView.SelectedNode);

            if (l_Event == null)
            {
                MessageBox.Show(this, "No event selected", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            EventManager l_Manager = new EventManager(l_Event, false, false, null);
            l_Manager.ShowDialog(this);

            if (!l_Manager.IsCanceled)
                RefreshEventList();
        }