/// <summary> /// Loads the data. /// </summary> /// <param name="fromDate">From date.</param> /// <param name="toDate">To date.</param> public void LoadData(DateTime fromDate, DateTime toDate) { this.TryExecute( () => { IAnalyticsClient client = this.factory.Create <IAnalyticsClient>(); this.View.SetCpuPerformanceData(client.GetSystemCpuPerformance(fromDate, toDate)); }, null, true); this.TryExecute( () => { IAnalyticsClient client = this.factory.Create <IAnalyticsClient>(); this.View.SetMemoryPerformanceData(client.GetSystemMemoryPerformance(fromDate, toDate)); }, null, true); }