Exemple #1
0
 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);
 }
Exemple #2
0
 private void _toolPane_UnPinClick(object sender, System.EventArgs e)
 {
     PinClick?.Invoke(this, null);
 }