private void pitchButton_Click(object sender, EventArgs e) { PitchDialog dialog = new PitchDialog(m_ElementList, m_Project); if (dialog.ShowDialog(Parent) == DialogResult.OK) { dialog.UpdateAction(); Actions.Actions.Instance.AddNew(dialog.Action, m_Project); } }
private void pitchToolStripMenuItem_Click(object sender, EventArgs e) { var list = GetAllSelectedFileElements(); if (list.Count == 0) { return; } PitchDialog dialog = new PitchDialog(list, m_Project); if (dialog.ShowDialog(Parent) == DialogResult.OK) { dialog.UpdateAction(); Actions.Actions.Instance.AddNew(dialog.Action, m_Project); } }