Skip to content

Commit

Permalink
Xamarin.Mac: MacTables
Browse files Browse the repository at this point in the history
Half of the ProductTableDataSource.cs class had been mysteriously
deleted. Fixed this issue.
  • Loading branch information
KMullins-Xam committed Sep 3, 2015
1 parent 44ffa95 commit ddee96f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion MacTables/MacTables/ProductTable/ProductTableDataSource.cs
Expand Up @@ -54,4 +54,16 @@ public override void SortDescriptorsChanged (NSTableView tableView, NSSortDescri
// Sort the data
if (oldDescriptors.Length > 0) {
// Update sort
Sort (oldDescriptors [0].Key, oldDescriptors [0].Ascendi
Sort (oldDescriptors [0].Key, oldDescriptors [0].Ascending);
} else {
// Grab current descriptors and update sort
NSSortDescriptor[] tbSort = tableView.SortDescriptors;
Sort (tbSort[0].Key, tbSort[0].Ascending);
}

// Refresh table
tableView.ReloadData ();
}
#endregion
}
}

0 comments on commit ddee96f

Please sign in to comment.