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