public DataViewModel(ITasksViewModel tasksViewModel, INotesViewModel notesViewModel, IEventsViewModel eventsViewModel, INotificationCenter notificationCenter)
        {
            TasksViewModel  = tasksViewModel;
            NotesViewModel  = notesViewModel;
            EventsViewModel = eventsViewModel;

            SetControlVisibility = new RelayCommand(ControlVisibility);

            this.notificationCenter = notificationCenter;
            notificationCenter.AddMessageHandler(ShowModal, NotificationName.SHOW_ITEM_EDIT_MODAL);
            notificationCenter.AddMessageHandler(CloseModal, NotificationName.CLOSE_ITEM_EDIT_MODAL);
        }
 public TasksComponent(ITasksViewModel tasksViewModel)
     : this() => DataContext = tasksViewModel;