Exemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="View" /> class.
        /// </summary>
        public View()
        {
            InitializeGlobalFontStyle();

            InitializeComponent();



            var traceMonitor = new TraceMonitor(traceViewer, Dispatcher, traceQueue);

            traceMonitor.StartToMonitor();

            Loaded += (s, e) =>
            {
                scope.Add(ShowErrorNotificationKey, AppScope.Get(ShowErrorNotificationKey));

                UserVisibleTrace      = traceQueue.AddMessage;
                ClearUserVisibleTrace = traceMonitor.CleanAllMessages;

                scope.Update(Keys.Trace, traceQueue.AddMessage);

                historyPanel.Connect(scope);
                currentInvocationInfo.Connect(scope);

                historyPanel.Refresh();

                scenarioEditor.Connect(scope);

                Title = "ApiInspector - " + AuthenticationUserName;
            };

            ShutdownApplicationWhenClosed(this);
        }