public WorkTimeRangeAddView(WorkTimeRangesController controller, WorkTimeRangeDto entity) : this()
        {
            Entity = entity;

            _controller = controller;

            MainStackPanel.DataContext = Entity;
        }
Ejemplo n.º 2
0
        public WorkTimeRangesView(WorkTimeRangesController workTimeRangesController) : this()
        {
            _controller = workTimeRangesController;

            LabelTask.Content = _controller.GetWorkTaskContext().Name;

            _controller.ListChanged   += ListChanged;
            MainFrame.ContentRendered += (s, o) => _controller.TriggerBlazeAddedEvent();

            ListChanged();
        }