public MainWindow() { InitializeComponent(); this.client = new MonitorServiceClient(); NbRequests.Content = client.GetNbRequest(); NbCacheRequests.Content = client.GetNbCacheRequest(); CurrentCacheExpirationTime.Content = client.GetCacheExpirationTime(); }
private void RefreshButton_Click(object sender, RoutedEventArgs e) { NbRequests.Content = client.GetNbRequest(); NbCacheRequests.Content = client.GetNbCacheRequest(); CacheMonitoring.Items.Clear(); foreach (var i in client.GetCachedCities()) { CacheMonitoring.Items.Add(i); } }