Exemplo n.º 1
0
        private void speakerButton_Click(object sender, EventArgs e)
        {
            SpeakersDialog dialog = new SpeakersDialog(m_ElementList, m_Project);

            if (dialog.ShowDialog(Parent) == DialogResult.OK)
            {
                dialog.UpdateAction();
                Actions.Actions.Instance.AddNew(dialog.Action, m_Project);
            }
        }
Exemplo n.º 2
0
        private void speakersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var list = GetAllSelectedFileElements();

            if (list.Count == 0)
            {
                return;
            }
            SpeakersDialog dialog = new SpeakersDialog(list, m_Project);

            if (dialog.ShowDialog(Parent) == DialogResult.OK)
            {
                dialog.UpdateAction();
                Actions.Actions.Instance.AddNew(dialog.Action, m_Project);
            }
        }