Скачать презентацию
Идет загрузка презентации. Пожалуйста, подождите
Презентация была опубликована 11 лет назад пользователемМарина Фалилеева
8 bool allowed = App.Current.Detach(); if (allowed){ //Показать что-нибудь пользователю } if(App.Current.RunningOffline) //Приложение запущено вне браузера else // Приложение запущено в браузере
10 this.ExecutionStateChanged += new EventHandler(App_ExecutionStateChanged); void App_ExecutionStateChanged(object sender, EventArgs e) { if (App.Current.ExecutionState == ExecutionStates.DetachedUpdatesAvailable) { MessageBox.Show("Доступно обновление."); }
12 NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(NetworkChange_Netw orkAddressChanged); void NetworkChange_NetworkAddressChanged(object sender, EventArgs e) { if(NetworkInterface.GetIsNetworkAvailable()) { txtConnection.Text = "Сетевое подключение ЕСТЬ"; } else { txtConnection.Text = "Сетевого подключения НЕТ"; }
18 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Еще похожие презентации в нашем архиве:
© 2024 MyShared Inc.
All rights reserved.