public MenuPivot() { InitializeComponent(); httpHelper = HttpHelper.GetInstance(); int hr = USTCCardProtocol.HRESULT_OK; hr = InitProfilePage(); hr = InitQueryPage(); }
// Constructor public MainPage() { InitializeComponent(); int hr = USTCCardProtocol.HRESULT_OK; httpHelper = HttpHelper.GetInstance(); if (!Microsoft.Phone.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) MessageBox.Show("没用可用的网络连接,请打开网络!"); }
public MainViewModel() { MainViewModel.Items = new ObservableCollection<ItemViewModel>(); httpHelper = HttpHelper.GetInstance(); }