public AddRemoveActionButtonsView()
        {
            InitializeComponent();

            btAddNew.Click += (o, e) => AddNewClick?.Invoke();
            btRemove.Click += (o, e) => RemoveClick?.Invoke();
        }
Beispiel #2
0
 private void btRemove_Click(object sender, EventArgs e)
 {
     OnRemoveClicked(e);
     if (RemoveClick != null)
     {
         RemoveClick.Invoke(this, e);
     }
 }
Beispiel #3
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);
 }
Beispiel #4
0
 private void RemoveFilterButton_Click(object sender, RoutedEventArgs e)
 {
     RemoveClick?.Invoke(this, EventArgs.Empty);
 }
 private void removeClick(object sender, EventArgs e)
 {
     RemoveClick?.Invoke(this);
 }
Beispiel #6
0
 protected void remove_Click(object sender, EventArgs e)
 {
     RemoveClick?.Invoke(sender, e, this);
 }
Beispiel #7
0
 private void FlatButton_Click(object sender, MouseEventArgs e)
 {
     RemoveClick?.Invoke(this);
 }
Beispiel #8
0
 private void RemoveButton_Click(object sender, RoutedEventArgs e)
 {
     RemoveClick?.Invoke(sender, e);
 }
Beispiel #9
0
 private void tsmiRemove_Click(object sender, EventArgs e)
 {
     RemoveClick.Invoke(sender, e);
 }
 private void BtnRemove_Click(object sender, RoutedEventArgs e)
 {
     RemoveClick?.Invoke(this, e);
 }
        private void DeletePlaylist_Click(object sender, RoutedEventArgs e)
        {
            IPlaylist playlist = (IPlaylist)((FrameworkElement)sender).DataContext;

            RemoveClick?.Invoke(this, new PlaylistActionEventArgs(playlist));
        }
Beispiel #12
0
 protected virtual void OnRemoveClick()
 {
     RemoveClick?.Invoke(this, EventArgs.Empty);
 }