void SetupToolbar() { addAction.Activated += (sender, e) => { using (var dialog = new ExpandedAssetDialog()) dialog.Run(); }; }
void RowDoubleClicked(object sender, RowActivatedArgs e) { if (e.Path.Indices.Length == 1) { var clickedAsset = Assets.GetNode(e.Path) as AssetTreeNode; using (var dlg = new ExpandedAssetDialog(clickedAsset.Asset)) dlg.Run(); } }