private void PictureBox_Click(object sender, EventArgs e)
 {
     if (_currentStatus == ConnStatus.Disconnected)
     {
         RetryRequested?.Invoke(this, new EventArgs());
     }
 }
        private void Retry_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            LoadingSpinner.Visibility = Visibility.Visible;
            LoadingSpinner.Start();
            Retry.IsEnabled = false;
            Retry.Text      = "Connecting...";

            Task.Delay(50).ContinueWith(t =>
            {
                RetryRequested?.Invoke(this, null);
            });
        }