// Add New Action Sequence (top menu) private void addNewToolStripMenuItem1_Click(object sender, EventArgs e) { frm_AddEdit_ActionSequence newActionSequence = new frm_AddEdit_ActionSequence(); if( newActionSequence.ShowDialog() == DialogResult.OK ) ProfileEdited(); refresh_dgActionSequences(); }
// Add New Action Sequence from Context private void newToolStripMenuItem1_Click(object sender, EventArgs e) { frm_AddEdit_ActionSequence newActionSequence = new frm_AddEdit_ActionSequence(); 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; frm_AddEdit_ActionSequence newActionSequence = new frm_AddEdit_ActionSequence(sequence_to_edit); if (newActionSequence.ShowDialog() == DialogResult.OK) { ProfileEdited(); } } refresh_dgActionSequences(); refresh_dgTriggerEvents(); }
private void EditActionSequence() { 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; frm_AddEdit_ActionSequence newActionSequence = new frm_AddEdit_ActionSequence(sequence_to_edit); if (newActionSequence.ShowDialog() == DialogResult.OK) ProfileEdited(); } refresh_dgActionSequences(); refresh_dgTriggerEvents(); }