private void download_click(object sender, EventArgs e)
{
var isNetwork = NetworkInterface.GetIsNetworkAvailable();
if (isNetwork)
{
if (isDownloading)
return;
isDownloading = true;
loading.Visibility = Visibility.Visible;
loading.IsIndeterminate = true;
DownloadRequireStaff();
}
else
MessageBox.Show("Error downloading maps. Please check your internet connection and try again!");
}