void OutlineItemExpanded (NSNotification notification)
{
InvokeOnMainThread (delegate
{
NSCmisTree cmis = notification.UserInfo ["NSObject"] as NSCmisTree;
if (cmis == null) {
Console.WriteLine ("ItemExpanded Error");
return;
}
NSCmisTree cmisRoot = cmis;
while (cmisRoot.Parent != null) {
cmisRoot = cmisRoot.Parent;
}
if (Repo.Name != cmisRoot.Name) {
Console.WriteLine ("ItemExpanded find root Error");
return;
}
Node node = cmis.GetNode (Repo);
if (node == null) {
Console.WriteLine ("ItemExpanded find node Error");
return;
}
Loader.Load (node);
});
}