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

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

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