public LogWindowControlViewModel()
        {
            if (Windows.ApplicationModel.DesignMode.DesignModeEnabled) return;

            _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;

            UI.Subscribe<LoginEventData>(LogLoginEvent);
            UI.Subscribe<HttpEventData>(LogHttpEvent);

            LogEntries = new ObservableCollection<EventData>();

            IsMainWindow = _dispatcher.Equals(App.Me.MainDispatcher);
        }
        public LogWindowControlViewModel()
        {
            if (Windows.ApplicationModel.DesignMode.DesignModeEnabled) return;

            _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;

            GetEvent<LoginEvent>().Subscribe(LogLoginEvent);
            GetEvent<HttpEvent>().Subscribe(LogHttpEvent);

            LogEntries = new ObservableCollection<EventData>();

            ItemToggleCommand = new DelegateCommand(ToggleItem);
            CopySelectedCommand = new DelegateCommand(CopySelectedItem);
            CopyAllCommand = new DelegateCommand(CopyAllItems);
            ShowJsonCommand = new DelegateCommand(ShowJson);

            IsMainWindow = _dispatcher.Equals((Application.Current as App).MainDispatcher);
        }