Пример #1
0
        private void screenShow_Click(object sendr, RoutedEventArgs e)
        {
            if (!TryGetSession(sendr, out HubClientSession sess))
            {
                return;
            }
            //var b64  = sess.CurrentState?.ScreenshotB64;
            //if (b64.IsBlank()) return;
            //var bmp = CreateBitmap.FromBase64(b64);
            var cap = $"[timestamp should be here]  {sess.UserAgent}";

            BitmapWindow1.Show(cap, sess.CurrentState?.ScreenshotB64);
        }
Пример #2
0
        private void ShowScreenshotIfAny(HubClientSession session)
        {
            var cap = $"[{DateTime.Now.ToShortTimeString()}]  {session.UserAgent}";

            AsUI(_ => BitmapWindow1.Show(cap, session.CurrentState?.ScreenshotB64));
        }