public void SaveRule() { NoteOnRule noteOnRule = handleRule as NoteOnRule; if (noteOnRule != null) { noteOnRule.Note = int.Parse(editNote.Text); } }
public void SetRule(HandleRule rule) { handleRule = rule; NoteOnRule noteOnRule = handleRule as NoteOnRule; if (noteOnRule != null) { editNote.Text = noteOnRule.Note.ToString(); } }