public void Attach(DummySession parent, CharacterDocument doc) { _parent = parent; if (!_viewer.IsDisposed) { _viewer.SetContent(doc); } }
public CommandResult InternalExecute(ICommandTarget target, params IAdaptable[] args) { ISessionManager sm = (ISessionManager)SessionTestPlugin.Instance.PoderosaWorld.PluginManager.FindPlugin("org.poderosa.core.sessions", typeof(ISessionManager)); DummySession ts = new DummySession(); IViewManager vm = WindowManagerPlugin.Instance.ActiveWindow.ViewManager; sm.StartNewSession(ts, vm.GetCandidateViewForNewDocument()); sm.ActivateDocument(ts.Document, ActivateReason.InternalAction); return(CommandResult.Succeeded); }
public CommandResult InternalExecute(ICommandTarget target, params IAdaptable[] args) { ISessionManager sm = (ISessionManager)SessionTestPlugin.Instance.PoderosaWorld.PluginManager.FindPlugin("org.poderosa.core.sessions", typeof(ISessionManager)); DummySession ts = new DummySession(); IViewManager vm = WindowManagerPlugin.Instance.ActiveWindow.ViewManager; sm.StartNewSession(ts, vm.GetCandidateViewForNewDocument()); sm.ActivateDocument(ts.Document, ActivateReason.InternalAction); return CommandResult.Succeeded; }
public void Attach(DummySession parent, CharacterDocument doc) { _parent = parent; if(!_viewer.IsDisposed) _viewer.SetContent(doc); }