private void OnNoteSelected(int index) { if (blocks[index].CurrentMode == NoteBlock.Mode.Inactive) { if (ActiveBlockPos != null) { blocks[(int)ActiveBlockPos].CurrentMode = NoteBlock.Mode.Inactive; } ActiveBlockPos = index; } else { blocks[index].CurrentMode = NoteBlock.Mode.Inactive; ActiveBlockPos = null; } NoteSelected.Invoke(SelectorIndex); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { NoteSelected?.Invoke(this, SDSource [indexPath.Row]); }