/// <summary>
        /// This method refreshes the network location label.
        /// </summary>
        private async Task RefreshNetworkLocation()
        {
            bool result = await TestNetwork.IsProbeAvailable();

            Invoke(new Action(() =>
            {
                lblNetLocation.ForeColor = Color.Black;
                if (result)
                {
                    lblNetLocation.Text = "Internal";
                }
                else
                {
                    lblNetLocation.Text = "External";
                }
            }));
        }
        /// <summary>
        /// This method refreshes the network status label.
        /// </summary>
        private async Task RefreshNetworkStatus()
        {
            bool result = await TestNetwork.IsProbeAvailable(true);

            Invoke(new Action(() =>
            {
                if (result)
                {
                    lblNetStatus.ForeColor = Color.DarkGreen;
                    lblNetStatus.Text      = "Connected";
                }
                else
                {
                    lblNetStatus.ForeColor = Color.DarkRed;
                    lblNetStatus.Text      = "Not Connected";
                }
            }));
        }