예제 #1
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(RoslynReplCommandConstants.RoslynReplGroup, (int)RoslynReplIds.SaveText) == CommandTargetStatus.Handled;
예제 #2
0
 public override void Execute(ReplEditorCtxMenuContext context) => context.UI.TextView.Options.SetOptionValue(DefaultTextViewHostOptions.LineNumberMarginId, !context.UI.TextView.Options.IsLineNumberMarginEnabled());
예제 #3
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.StandardGroup, (int)StandardIds.Paste) == CommandTargetStatus.Handled;
예제 #4
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(RoslynReplCommandConstants.RoslynReplGroup, (int)RoslynReplIds.SaveText);
예제 #5
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.ReplGroup, (int)ReplIds.CopyCode);
예제 #6
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.StandardGroup, (int)StandardIds.Paste);
예제 #7
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.TextEditorGroup, (int)TextEditorIds.TOGGLEWORDWRAP);
예제 #8
0
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.CanReset;
예제 #9
0
 public override bool IsEnabled(ReplEditorCtxMenuContext context)
 {
     return(context.VM.CanReset);
 }
예제 #10
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.ReplGroup, (int)ReplIds.ClearScreen) == CommandTargetStatus.Handled;
예제 #11
0
 public override void Execute(ReplEditorCtxMenuContext context)
 {
     context.VM.Reset();
 }
예제 #12
0
 public override bool IsEnabled(ReplEditorCtxMenuContext context)
 {
     return(context.UI.CanClear);
 }
예제 #13
0
 public override void Execute(ReplEditorCtxMenuContext context)
 {
     context.UI.Clear();
 }
예제 #14
0
 public override bool IsChecked(ReplEditorCtxMenuContext context) => context.UI.TextView.Options.IsLineNumberMarginEnabled();
예제 #15
0
파일: Commands.cs 프로젝트: net10010/dnSpy
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.TextEditorGroup, (int)TextEditorIds.TOGGLEWORDWRAP) == CommandTargetStatus.Handled;
예제 #16
0
 public override bool IsChecked(ReplEditorCtxMenuContext context) => (context.UI.TextView.Options.WordWrapStyle() & WordWrapStyles.WordWrap) != 0;
예제 #17
0
 public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.UI.CanClear;