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); } }
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); } }