private void MenuItemShowNotifications_OnClick(object sender, RadRoutedEventArgs e) { try { WindowNotifications windowNotifications = new WindowNotifications(); windowNotifications.NotificationServiceClient = this.NotificationServiceClient; // TODO Parameter windowNotifications.StartTime = DateTime.Now - new TimeSpan(0, 24, 0, 0); // TODO Parameter windowNotifications.EndTime = DateTime.Now; windowNotifications.Show(); windowNotifications.ShowData(); } catch (Exception ex) { Logger.LogIndustrialMonitoring(ex); } }
private void MenuItemShowNotificationForCurrentItem_OnClick(object sender, RadRoutedEventArgs e) { try { ChartLiveData selected = null; foreach (var chartLiveData in AllCharts) { if (chartLiveData.IsSelected) { selected = chartLiveData; break; } } if (selected == null) { ShowMsgOnStatusBar("First select a item"); return; } WindowNotifications windowNotifications = new WindowNotifications(); windowNotifications.NotificationServiceClient = this.NotificationServiceClient; // TODO Parameter windowNotifications.StartTime = DateTime.Now - new TimeSpan(0, 24, 0, 0); // TODO Parameter windowNotifications.EndTime = DateTime.Now; windowNotifications.NotificationServiceClient = this.NotificationServiceClient; windowNotifications.ItemId = selected.ItemsAioViewModel.ItemId; windowNotifications.Show(); windowNotifications.ShowData(); } catch (Exception ex) { Logger.LogIndustrialMonitoring(ex); } }