Example #1
0
        /// <summary>
        /// ネットワーク状態等の確認
        /// </summary>
        private async void Check()
        {
            await Task.Run(() =>
            {
                this.IsInternetOnline = CommonMethods.CheckInternetConnectEnabled();
                this.IsTwitterOnline  = CommonMethods.CheckTwitterConnectEnabled();
            });

            this.IsOnline = this.IsInternetOnline && this.IsTwitterOnline;
        }