コード例 #1
0
 public void Attach(DummySession parent, CharacterDocument doc)
 {
     _parent = parent;
     if (!_viewer.IsDisposed)
     {
         _viewer.SetContent(doc);
     }
 }
コード例 #2
0
            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);
            }
コード例 #3
0
ファイル: SessionTestPlugin.cs プロジェクト: yiyi99/poderosa
            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;
            }
コード例 #4
0
ファイル: SessionTestPlugin.cs プロジェクト: yiyi99/poderosa
 public void Attach(DummySession parent, CharacterDocument doc) {
     _parent = parent;
     if(!_viewer.IsDisposed)
         _viewer.SetContent(doc);
 }