private void UpdateDesktopWindow(TimeEntryTimerService obj) { if (ActiveDeskTopTask != null) { ActiveDeskTopTask.ApplyViewModel(new DesktopTaskViewModel(obj)); } }
private void LoadDesktopTask(TimeEntryTimerService timeEntryTimerService) { var isOpen = ActiveDeskTopTask != null; if (!isOpen) { ActiveDeskTopTask = new DesktopTaskView.DesktopTaskView(); ActiveDeskTopTask.Show(); } ActiveDeskTopTask.ApplyViewModel(new DesktopTaskViewModel(timeEntryTimerService)); }