private void DeleteElement() { var temp = new List <ElementModel>(CurrentTable.ElementDataGrid.SelectedItems.OfType <ElementModel>()); Manager.Remove(temp); foreach (ElementModel item in temp) { CurrentTable.DeleteElement(item); } }
private void DeleteElement() { var temp = new List <ElementModel>(CurrentTable.ElementDataGrid.SelectedItems.OfType <ElementModel>()); Manager.Remove(temp); foreach (ElementModel item in temp) { CurrentTable.DeleteElement(item); } }