private void OnMouseDown(UIComponent component, UIMouseEventParameter p)
        {
            StopListBoxRow stopListBoxRow = component as StopListBoxRow;

            if (p.buttons == UIMouseButton.Left)
            {
                for (int index = 0; index < this._items.Length; ++index)
                {
                    if ((UnityEngine.Object) this._items[index] != (UnityEngine.Object)stopListBoxRow)
                    {
                        this._items[index].IsSelected = false;
                    }
                    else
                    {
                        stopListBoxRow.IsSelected = !stopListBoxRow.IsSelected;
                    }
                }
            }
            else
            {
                if (p.buttons != UIMouseButton.Right)
                {
                    return;
                }
                InstanceID instanceId = new InstanceID();
                instanceId.NetNode = stopListBoxRow.StopID;
                ToolsModifierControl.cameraController.SetTarget(instanceId, ToolsModifierControl.cameraController.transform.position, Input.GetKey(KeyCode.LeftShift) | Input.GetKey(KeyCode.RightShift));
                NetNode netNode = Singleton <NetManager> .instance.m_nodes.m_buffer[(int)stopListBoxRow.StopID];
                PublicTransportStopWorldInfoPanel.instance.Show(netNode.m_position, instanceId);
                Singleton <InfoManager> .instance.SetCurrentMode(InfoManager.InfoMode.Transport, InfoManager.SubInfoMode.Default);
            }
        }
        public void AddItem(ushort stopID, int stopIndex)
        {
            StopListBoxRow[] stopListBoxRowArray = new StopListBoxRow[this._items.Length + 1];
            Array.Copy((Array)this._items, (Array)stopListBoxRowArray, this._items.Length);
            StopListBoxRow stopListBoxRow = this._scrollablePanel.AddUIComponent <StopListBoxRow>();

            if ((UnityEngine.Object) this.Font != (UnityEngine.Object)null)
            {
                stopListBoxRow.Font = this.Font;
            }
            stopListBoxRow.StopID                   = stopID;
            stopListBoxRow.StopIndex                = stopIndex;
            stopListBoxRow.eventMouseDown          += new MouseEventHandler(this.OnMouseDown);
            stopListBoxRowArray[this._items.Length] = stopListBoxRow;
            this._items = stopListBoxRowArray;
        }