private void Refresh_click(object sender, RoutedEventArgs e) { Mouse.OverrideCursor = Cursors.Wait; var settings = settingsService.GetSettings(); settingsService.CleatAuthInformation(); var authCookie = barboraService.Login(settings.Username, settings.Password); settingsService.UpdateAuthInformation(settings.Username, settings.Password, authCookie); Mouse.OverrideCursor = Cursors.Arrow; }