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