コード例 #1
0
        public EditWorkItem(
            IWorkApplicationService workApplicationService,
            IWeekApplicationService weekApplicationService,
            IAssigneeApplicationService assigneeApplicationService,
            IEpicApplicationService epicApplicationService,
            WorkItemViewModel workItem)
        {
            _workApplicationService     = workApplicationService;
            _weekApplicationService     = weekApplicationService;
            _assigneeApplicationService = assigneeApplicationService;
            _epicApplicationService     = epicApplicationService;
            _workItemViewModel          = workItem;

            InitializeComponent();
            LoadData();

            DataContext = this;
            if (_workItemViewModel.Id.HasValue)
            {
                DateStatusChanged.Focus();
            }
            else
            {
                IssueID.Focus();
            }
        }
コード例 #2
0
        public CreateWorkItem(
            IWorkApplicationService workApplicationService,
            IAssigneeApplicationService assigneeApplicationService,
            IWeekApplicationService weekApplicationService,
            IEpicApplicationService epicApplicationService)
        {
            _workApplicationService     = workApplicationService;
            _assigneeApplicationService = assigneeApplicationService;
            _weekApplicationService     = weekApplicationService;
            _epicApplicationService     = epicApplicationService;

            InitializeComponent();

            GetDataScreen();

            DataContext = this;

            IssueID.Focus();
        }