示例#1
0
        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);
        }
示例#2
0
 public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
 {
     NoteSelected?.Invoke(this, SDSource [indexPath.Row]);
 }