コード例 #1
0
 void SetupToolbar()
 {
     addAction.Activated += (sender, e) => {
         using (var dialog = new ExpandedAssetDialog())
             dialog.Run();
     };
 }
コード例 #2
0
 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();
     }
 }