コード例 #1
0
ファイル: ScriptContent.cs プロジェクト: GreenDamTan/dnSpy
		protected ScriptContent(IThemeManager themeManager, IReplEditorCreator replEditorCreator, ReplEditorOptions replOpts, IServiceLocator serviceLocator) {
			this.replEditorUI = replEditorCreator.Create(replOpts);
			this.scriptControl = new ScriptControl();
			this.scriptControl.SetTextEditorObject(this.replEditorUI.UIObject);
			this.scriptControlVM = CreateScriptControlVM(this.replEditorUI, serviceLocator);
			this.scriptControlVM.OnCommandExecuted += ScriptControlVM_OnCommandExecuted;
			this.replEditorUI.Tag = this;
			this.scriptControl.DataContext = this.scriptControlVM;
			themeManager.ThemeChanged += ThemeManager_ThemeChanged;
		}
コード例 #2
0
 protected ScriptContent(IThemeManager themeManager, IReplEditorCreator replEditorCreator, ReplEditorOptions replOpts, IServiceLocator serviceLocator)
 {
     this.replEditorUI  = replEditorCreator.Create(replOpts);
     this.scriptControl = new ScriptControl();
     this.scriptControl.SetTextEditorObject(this.replEditorUI.UIObject);
     this.scriptControlVM = CreateScriptControlVM(this.replEditorUI, serviceLocator);
     this.scriptControlVM.OnCommandExecuted += ScriptControlVM_OnCommandExecuted;
     this.replEditorUI.Tag          = this;
     this.scriptControl.DataContext = this.scriptControlVM;
     themeManager.ThemeChanged     += ThemeManager_ThemeChanged;
 }
コード例 #3
0
ファイル: ScriptContent.cs プロジェクト: GreenDamTan/dnSpy
		public static ScriptContent GetScriptContent(IReplEditorUI replEditorUI) =>
			(ScriptContent)replEditorUI.Tag;
コード例 #4
0
 public ReplEditorCtxMenuContext(IReplEditorUI ui)
 {
     this.UI = ui;
     this.VM = ScriptContent.GetScriptContent(ui).ScriptControlVM;
 }
コード例 #5
0
ファイル: ScriptContent.cs プロジェクト: n017/dnSpy
 public static ScriptContent GetScriptContent(IReplEditorUI replEditorUI)
 {
     return (ScriptContent)replEditorUI.Tag;
 }
コード例 #6
0
 public static ScriptContent GetScriptContent(IReplEditorUI replEditorUI) =>
 (ScriptContent)replEditorUI.Tag;
コード例 #7
0
ファイル: ScriptContent.cs プロジェクト: 0x53A/dnSpy
 public static ScriptContent GetScriptContent(IReplEditorUI replEditorUI)
 {
     return((ScriptContent)replEditorUI.Tag);
 }