本文整理汇总了C#中dnSpy.AsmEditor.Commands.AsmEditorContext类的典型用法代码示例。如果您正苦于以下问题:C# AsmEditorContext类的具体用法?C# AsmEditorContext怎么用?C# AsmEditorContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsmEditorContext类属于dnSpy.AsmEditor.Commands命名空间,在下文中一共展示了AsmEditorContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsVisible
public override bool IsVisible(AsmEditorContext context) {
return true;
}
示例2: Execute
public override void Execute(AsmEditorContext context) {
DeleteFieldDefCommand.Execute(undoCommandManager, context.Nodes);
}
示例3: IsVisible
public override bool IsVisible(AsmEditorContext context) => EditMethodBodyILCommand.CanExecute(context.Nodes);
示例4: IsVisible
public override bool IsVisible(AsmEditorContext context) {
return CreateAssemblyLinkedResourceCommand.CanExecute(context.Nodes);
}
示例5: Execute
public override void Execute(AsmEditorContext context) {
DeleteResourceElementCommand.Execute(undoCommandManager, context.Nodes);
}
示例6: IsVisible
public override bool IsVisible(AsmEditorContext context) => DeleteEventDefCommand.CanExecute(context.Nodes);
示例7: Execute
public override void Execute(AsmEditorContext context) => DeleteEventDefCommand.Execute(undoCommandService, context.Nodes);
示例8: GetHeader
public override string GetHeader(AsmEditorContext context) {
return GetDocuments(context.Nodes).Count <= 1 ? dnSpy_AsmEditor_Resources.SaveModuleCommand : dnSpy_AsmEditor_Resources.SaveModulesCommand;
}
示例9: Execute
public override void Execute(AsmEditorContext context) {
var asmNodes = GetDocuments(context.Nodes);
documentSaver.Value.Save(asmNodes);
}
示例10: IsEnabled
public override bool IsEnabled(AsmEditorContext context) {
return GetDocuments(context.Nodes).Count > 0;
}
示例11: GetHeader
public override string GetHeader(AsmEditorContext context) => DeleteEventDefCommand.GetHeader(context.Nodes);
示例12: GetHeader
public override string GetHeader(AsmEditorContext context) {
return DeleteResourceCommand.GetHeader(context.Nodes);
}
示例13: IsVisible
public override bool IsVisible(AsmEditorContext context) {
return FieldDefSettingsCommand.CanExecute(context.Nodes);
}
示例14: GetHeader
public override string GetHeader(AsmEditorContext context) {
return DeleteFieldDefCommand.GetHeader(context.Nodes);
}
示例15: Execute
public override void Execute(AsmEditorContext context) => EditMethodBodyILCommand.Execute(methodAnnotations, undoCommandService, appService, context.Nodes);