public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (!(holder is ComputerViewHolder vh)) { return; } vh.Caption.Text = Computers[position].Ip; vh.ConnectButton.Click += (sender, args) => ConnectClick?.Invoke(holder, position); vh.RemoveButton.Click += (sender, args) => RemoveClick?.Invoke(holder, position); vh.PinButton.Click += (sender, args) => PinClick?.Invoke(holder, position); }
private void _toolPane_UnPinClick(object sender, System.EventArgs e) { PinClick?.Invoke(this, null); }