// Executes when the user navigates to this page. protected override void OnNavigatedTo(NavigationEventArgs e) { m_measurementList = new ObservableCollection <Measurement>(); App app = (App)Application.Current; m_activityWindow = new ActivityWindow("Loading Data... Please Wait..."); m_activityWindow.Show(); m_client.GetHistoriansAsync(true, true, true); m_client.GetDevicesAsync(DeviceType.NonConcentrator, app.NodeValue, true); m_client.GetSignalTypesAsync(false); ClearForm(); if (this.NavigationContext.QueryString.ContainsKey("did")) { m_deviceID = Convert.ToInt32(this.NavigationContext.QueryString["did"]); m_client.GetMeasurementsByDeviceAsync(m_deviceID); m_client.GetDeviceByDeviceIDAsync(m_deviceID); } else { m_client.GetMeasurementListAsync(app.NodeValue); } }
public void GetHistorians() { m_client.GetHistoriansAsync(true, true, false); }