示例#1
0
 public override bool IsEnabled(CodeContext context) => context.IsDefinition && DeletePropertyDefCommand.CanExecute(context.Nodes);
示例#2
0
 protected override void Initialize(Context ctx, MenuItem menuItem)
 {
     DeletePropertyDefCommand.Initialize(ctx.Nodes, menuItem);
 }
示例#3
0
 public override bool IsVisible(AsmEditorContext context) => DeletePropertyDefCommand.CanExecute(context.Nodes);
示例#4
0
 protected override bool CanExecute(Context ctx)
 {
     return(ctx.ReferenceSegment.IsLocalTarget &&
            DeletePropertyDefCommand.CanExecute(ctx.Nodes));
 }
示例#5
0
 protected override void Execute(Context ctx)
 {
     DeletePropertyDefCommand.Execute(ctx.Nodes);
 }
示例#6
0
 public override string?GetHeader(AsmEditorContext context) => DeletePropertyDefCommand.GetHeader(context.Nodes);
示例#7
0
 protected override void Initialize(ILSpyTreeNode[] nodes, MenuItem menuItem)
 {
     DeletePropertyDefCommand.Initialize(nodes, menuItem);
 }
示例#8
0
 void DeleteExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     DeletePropertyDefCommand.Execute(MainWindow.Instance.SelectedNodes);
 }
示例#9
0
 protected override bool CanExecuteInternal(ILSpyTreeNode[] nodes)
 {
     return(DeletePropertyDefCommand.CanExecute(nodes));
 }
示例#10
0
 public override void Execute(AsmEditorContext context) => DeletePropertyDefCommand.Execute(undoCommandService, context.Nodes);
示例#11
0
 void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = DeletePropertyDefCommand.CanExecute(MainWindow.Instance.SelectedNodes);
 }
示例#12
0
 public override string GetHeader(AsmEditorContext context)
 {
     return(DeletePropertyDefCommand.GetHeader(context.Nodes));
 }
示例#13
0
 public override void Execute(AsmEditorContext context)
 {
     DeletePropertyDefCommand.Execute(undoCommandManager, context.Nodes);
 }
示例#14
0
 public override bool IsEnabled(CodeContext context)
 {
     return(context.IsLocalTarget &&
            DeletePropertyDefCommand.CanExecute(context.Nodes));
 }
示例#15
0
 public override void Execute(CodeContext context) => DeletePropertyDefCommand.Execute(undoCommandManager, context.Nodes);
示例#16
0
 protected override void ExecuteInternal(ILSpyTreeNode[] nodes)
 {
     DeletePropertyDefCommand.Execute(nodes);
 }
示例#17
0
 public override string GetHeader(CodeContext context) => DeletePropertyDefCommand.GetHeader(context.Nodes);
示例#18
0
		CommandLoader(IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, DeletePropertyDefCommand.EditMenuCommand removeCmd, DeletePropertyDefCommand.CodeCommand removeCmd2, PropertyDefSettingsCommand.EditMenuCommand settingsCmd, PropertyDefSettingsCommand.CodeCommand settingsCmd2) {
			wpfCommandManager.AddRemoveCommand(removeCmd);
			wpfCommandManager.AddRemoveCommand(removeCmd2, fileTabManager);
			wpfCommandManager.AddSettingsCommand(fileTabManager, settingsCmd, settingsCmd2);
		}