예제 #1
0
 public void Initialize()
 {
     if (XManager.DeviceConfiguration.JournalFilters != null)
         foreach (var journalFilter in XManager.DeviceConfiguration.JournalFilters)
         {
             var filteredJournalViewModel = new JournalViewModel(journalFilter);
             Journals.Add(filteredJournalViewModel);
         }
 }
예제 #2
0
		public void Initialize()
		{
			Journals = new ObservableCollection<JournalViewModel>();
			Journals.Add(new JournalViewModel(new XJournalFilter() { Name = " Все события" }));
			SelectedJournal = Journals.FirstOrDefault();

			ServiceFactory.Events.GetEvent<NewXJournalEvent>().Unsubscribe(OnNewJournal);
			ServiceFactory.Events.GetEvent<NewXJournalEvent>().Subscribe(OnNewJournal);

			foreach (var journalFilter in XManager.DeviceConfiguration.JournalFilters)
			{
				var filteredJournalViewModel = new JournalViewModel(journalFilter);
				Journals.Add(filteredJournalViewModel);
			}
		}
예제 #3
0
		void OnReadJournal()
		{
			var journalViewModel = new JournalViewModel(SelectedDevice.Device);
			if (journalViewModel.Initialize())
			{
				DialogService.ShowModalWindow(journalViewModel);
			}
		}
예제 #4
0
 void OnReadJournal()
 {
     var journalViewModel = new JournalViewModel(SelectedDevice.Device);
     DialogService.ShowModalWindow(journalViewModel);
 }
예제 #5
0
		void UpdateSelectedJournal()
		{
			var selectedJournal = SelectedJournal;
			SelectedJournal = null;
			SelectedJournal = selectedJournal;
		}