Пример #1
0
        private void Grid_RowsSelected(object sender, Grid.RowsSelectedEventArgs e)
        {
            this.Selected.NotifyListChanged = false;
            this.Selected.Clear();

            List <Model.Item> items = this.Displayed.ToList();

            foreach (Row row in this.Grid.SelectedRows)
            {
                this.Selected.Add(items[row.Index]);
            }

            this.Selected.NotifyListChanged = true;

            // Trigger Event
            this.OnItemsSelected();
        }
Пример #2
0
        private void Grid_RowsSelected(object sender, Grid.RowsSelectedEventArgs e)
        {
            this.Selected.NotifyListChanged = false;
            this.Selected.Clear();

            List <Model.Relationship> relationships = this.Displayed.ToList();

            foreach (Row row in this.Grid.SelectedRows)
            {
                this.Selected.Add(relationships[row.Index]);
            }

            this.UpdateCommandsCanExecute();

            this.Selected.NotifyListChanged = true;

            this.OnRelationshipsSelected();
        }