Ejemplo n.º 1
0
        private void tsbApplySettings_Click(object sender, EventArgs e)
        {
            if (m_scoreSettings == null)
            {
                return;
            }
            if (tvwScores.SelectedNode == null || tvwScores.SelectedNode.Tag == null)
            {
                return;
            }

            BaseScore score = tvwScores.SelectedNode.Tag as BaseScore;

            if (score != m_scoreSettings && score.GetType() == m_scoreSettings.GetType())
            {
                score.ApplySettings(m_scoreSettings);
                BaseScoreEditor editor = GetEditor();
                if (editor != null)
                {
                    editor.LoadScore(score, m_center);
                }
            }
        }