private void CategoriesPickerButtonHandler(object obj) { CategoriesPicker categoriesPicker = new CategoriesPicker(mIssue); categoriesPicker.Show(); categoriesPicker.Closed += (s1, e1) => { if (categoriesPicker.DialogResult.HasValue && categoriesPicker.DialogResult.Value) { mAllCategoriesPicked = categoriesPicker.AllChecked; List<IssueAssignedCategory> issueAssignedCategories = new List<IssueAssignedCategory>(); foreach (var category in categoriesPicker.Categories) { IssueAssignedCategory issueAssignedCategory = new IssueAssignedCategory { //IssueId = this.Id, IssueCategoryId = category.Id, IssueCategory = (from x in mIssueCategories where x.Id == category.Id select x).FirstOrDefault(), }; issueAssignedCategories.Add(issueAssignedCategory); } mIssue.IssueAssignedCategories = issueAssignedCategories; RaisePropertyChanged("Categories"); UpdateAssignToUsers(); } }; }
private void CategoriesPickerButtonHandler(object obj) { var categoriesPicker = new CategoriesPicker(mIssue); categoriesPicker.Show(); categoriesPicker.Closed += (s1, e1) => { if (categoriesPicker.DialogResult.HasValue && categoriesPicker.DialogResult.Value) { mAllCategoriesPicked = categoriesPicker.AllChecked; UpdateCategoriesAndDistributionList(categoriesPicker.Categories); UpdateApprovals(); UpdateCloseouts(); //UpdateAssignToUsers(); } }; }
private void CategoriesPickerButtonHandler(object obj) { var categories = GetUserApprovalCategories(mUser); foreach (var issueCategory in categories) { if (Categories.Select(x => x.Id).Contains(issueCategory.Id)) { issueCategory.Checked = true; } } var categoriesPicker = new CategoriesPicker(categories); categoriesPicker.Show(); categoriesPicker.Closed += (s1, e1) => { if (categoriesPicker.DialogResult.HasValue && categoriesPicker.DialogResult.Value) { mAllCategoriesPicked = categoriesPicker.AllChecked; Categories = categoriesPicker.Categories; RaisePropertyChanged("CategoriesString"); ProcessSearchFilter(); } }; }
private void CategoriesPickerButtonHandler(object obj) { var categoriesPicker = new CategoriesPicker(mRole.RoleApprovalCategories); categoriesPicker.Show(); categoriesPicker.Closed += (s1, e1) => { if (categoriesPicker.DialogResult.HasValue && categoriesPicker.DialogResult.Value) { mAllCategoriesPicked = categoriesPicker.AllChecked; UpdateCategories(categoriesPicker.Categories); RaisePropertyChanged("DefaultCategories"); RaisePropertyChanged("DefaultCategory"); } }; }