Exemplo n.º 1
0
        private void tempoButton_Click(object sender, EventArgs e)
        {
            TempoDialog dialog = new TempoDialog(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 tempoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var list = GetAllSelectedFileElements();

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

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