private void btnDelete_Click(object sender, RoutedEventArgs e) {
      var btn = sender as RoundMetroButton;

      var e2 = new DeleteStringListItemRoutedEventArgs(RemovedItemEvent);

      e2.Id = (int)btn.Tag;

      RaiseEvent(e2);
    }
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            var btn = sender as RoundMetroButton;

            var e2 = new DeleteStringListItemRoutedEventArgs(RemovedItemEvent);

            e2.Id = (int)btn.Tag;

            RaiseEvent(e2);
        }
        void btnDelete_Click(object sender, DeleteStringListItemRoutedEventArgs e)
        {
            var itm = sender as StringListItemControl;

            var e2 = new StringListItemRoutedEventArgs(RemovedItemEvent);

            e2.Item = _items[(int)e.Id];

            RemoveListItem(itm, e.Id);

            RaiseEvent(e2);
        }
示例#4
0
        void btnDelete_Click(object sender, DeleteStringListItemRoutedEventArgs e)
        {
            var itm = sender as QueueListItemControl;

            var e2 = new QueueListItemRoutedEventArgs(RemovedItemEvent);

            e2.Items = new List <QueueListItem> {
                _items[e.Id]
            };

            RemoveListItem(itm, e.Id);

            RaiseEvent(e2);
        }
    void btnDelete_Click(object sender, DeleteStringListItemRoutedEventArgs e) {
      var itm = sender as QueueListItemControl;

      var e2 = new QueueListItemRoutedEventArgs(RemovedItemEvent);

      e2.Items = new List<QueueListItem> {_items[e.Id]};

      RemoveListItem(itm, e.Id);

      RaiseEvent(e2);
    }
    void btnDelete_Click(object sender, DeleteStringListItemRoutedEventArgs e) {
      var itm = sender as StringListItemControl;

      var e2 = new StringListItemRoutedEventArgs(RemovedItemEvent);

      e2.Item = _items[(int)e.Id];

      RemoveListItem(itm, e.Id);

      RaiseEvent(e2);
    }