コード例 #1
0
        AgentSessionWindow(ClientSessionUri clientSessionUri)
        {
            MessageViewDelegate       = new WpfMessageViewDelegate(this);
            DialogMessageViewDelegate = new WpfDialogMessageViewDelegate(this);

            Session = new ClientSession(clientSessionUri);
            Session.InitializeViewControllers(
                new WpfClientSessionViewControllers(MessageViewDelegate, DialogMessageViewDelegate));

            SessionController.AddSession(Session, this);

            InitializeComponent();
            DataContext = this;
            ViewModel   = new ViewInspectorViewModel <AgentSessionWindow> (Session, this);
            menuManager = new MenuManager(mainMenu, this, Session.SessionKind != ClientSessionKind.LiveInspection);

            replWebView.Loaded        += HandleWebViewControlLoaded;
            replWebView.LoadCompleted += HandleWebViewSourceLoadCompleted;

            propertyEditor.EditorProvider = new InteractiveEditorProvider(Session, new WpfPropertyViewHelper());
        }
コード例 #2
0
 protected override void OnSessionAvailable()
 {
     base.OnSessionAvailable();
     model = new MacViewInspector(this, Session);
 }