Need some advice.
I am writing a translator program under WinPhone. During a request to the translator api, I catch an internet connection timeout error. So I think it can turn on each time the "Translation" button is clicked, in order not to make the user wait until the error is caught, but to immediately indicate that the network is unavailable:
if (!DeviceNetworkInformation.IsNetworkAvailable) { // уведомляем что сеть недоступна } else { // выполняем код перевода }
Now I think, but whether it will not take away too much time and memory for such a test? I will be glad to any comments and advice.
Thank!