Example #1
0
 protected override void Initialize(Context ctx, MenuItem menuItem)
 {
     DeletePropertyDefCommand.Initialize(ctx.Nodes, menuItem);
 }
Example #2
0
 protected override bool CanExecute(Context ctx)
 {
     return(ctx.ReferenceSegment.IsLocalTarget &&
            DeletePropertyDefCommand.CanExecute(ctx.Nodes));
 }
Example #3
0
 protected override void Execute(Context ctx)
 {
     DeletePropertyDefCommand.Execute(ctx.Nodes);
 }
Example #4
0
 protected override void Initialize(ILSpyTreeNode[] nodes, MenuItem menuItem)
 {
     DeletePropertyDefCommand.Initialize(nodes, menuItem);
 }
Example #5
0
 protected override void ExecuteInternal(ILSpyTreeNode[] nodes)
 {
     DeletePropertyDefCommand.Execute(nodes);
 }
Example #6
0
 protected override bool CanExecuteInternal(ILSpyTreeNode[] nodes)
 {
     return(DeletePropertyDefCommand.CanExecute(nodes));
 }
Example #7
0
 void DeleteExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     DeletePropertyDefCommand.Execute(MainWindow.Instance.SelectedNodes);
 }
Example #8
0
 void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = DeletePropertyDefCommand.CanExecute(MainWindow.Instance.SelectedNodes);
 }