void OutlineSelected (NSCmisTree cmis, int selected)
{
InvokeOnMainThread (delegate
{
Node node = cmis.GetNode (Repo);
if (node == null) {
Console.WriteLine ("SelectedEvent find node Error");
}
node.Selected = (selected != 0);
DataSource.UpdateCmisTree (Repo);
for (int i = 0; i < Outline.RowCount; ++i) {
try {
Outline.ReloadItem (Outline.ItemAtRow (i));
} catch (Exception e) {
Console.WriteLine (e);
}
}
});
}