Ejemplo n.º 1
0
        public void SaveRule()
        {
            NoteOnRule noteOnRule = handleRule as NoteOnRule;

            if (noteOnRule != null)
            {
                noteOnRule.Note = int.Parse(editNote.Text);
            }
        }
Ejemplo n.º 2
0
        public void SetRule(HandleRule rule)
        {
            handleRule = rule;
            NoteOnRule noteOnRule = handleRule as NoteOnRule;

            if (noteOnRule != null)
            {
                editNote.Text = noteOnRule.Note.ToString();
            }
        }