Exemple #1
0
        // Add Trigger to TriggerEvent
        private void addtoeventToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (dgTriggers.MultiSelect == true)
            {
                throw new NotImplementedException("Adding multiple triggers at once is unsupported.");
            }
            foreach (DataGridViewRow row in this.dgTriggers.SelectedRows)
            {
                // In this case it is a Trigger -> Trigger addition
                Trigger_Event event_to_add = row.DataBoundItem as Trigger_Event;
                frm_Add_to_TriggerEvent newAddtoTriggerEvent = new frm_Add_to_TriggerEvent(event_to_add);

                if (newAddtoTriggerEvent.ShowDialog() == DialogResult.OK) ProfileEdited();

            }
            refresh_dgTriggerEvents();
        }
Exemple #2
0
        // Add Trigger to TriggerEvent
        private void addtoeventToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (dgTriggers.MultiSelect == true)
            {
                throw new NotImplementedException("Adding multiple triggers at once is unsupported.");
            }
            foreach (DataGridViewRow row in this.dgTriggers.SelectedRows)
            {
                // In this case it is a Trigger -> Trigger addition
                VI_TriggerEvent         event_to_add         = row.DataBoundItem as VI_TriggerEvent;
                frm_Add_to_TriggerEvent newAddtoTriggerEvent = new frm_Add_to_TriggerEvent(event_to_add);

                if (newAddtoTriggerEvent.ShowDialog() == DialogResult.OK)
                {
                    ProfileEdited();
                }
            }
            refresh_dgTriggerEvents();
        }