예제 #1
0
        private void balanceButton_Click(object sender, EventArgs e)
        {
            BalanceDialog dialog = new BalanceDialog(m_ElementList, m_Project);

            if (dialog.ShowDialog(Parent) == DialogResult.OK)
            {
                dialog.UpdateAction();
                Actions.Actions.Instance.AddNew(dialog.Action, m_Project);
            }
        }
예제 #2
0
        private void balanceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var list = GetAllSelectedFileElements();

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

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