// Add New Action Sequence from Context private void newToolStripMenuItem1_Click(object sender, EventArgs e) { frmActionSequence newActionSequence = new frmActionSequence(); if (newActionSequence.ShowDialog() == DialogResult.OK) { ProfileEdited(); } refresh_dgActionSequences(); }
// Edit Action Sequence private void editToolStripMenuItem1_Click(object sender, EventArgs e) { if (dgActionSequences.MultiSelect == true) { throw new NotImplementedException("Editing multiple sequences at once is unsupported."); } foreach (DataGridViewRow row in this.dgActionSequences.SelectedRows) { VI_Action_Sequence sequence_to_edit = row.DataBoundItem as VI_Action_Sequence; frmActionSequence newActionSequence = new frmActionSequence(sequence_to_edit); if (newActionSequence.ShowDialog() == DialogResult.OK) { ProfileEdited(); } } refresh_dgActionSequences(); refresh_dgTriggerEvents(); }