public void CheckForProjectFacilitator(StoryProjectData storyProjectData, TeamMemberData loggedOnMember) { if (CraftingInfo.ProjectFacilitatorMemberID == null) { // this means that we've opened a file which didn't have the proj fac listed // if there's only one PF, then just put that one in. If there are multiple, // then ask which one to use if ((storyProjectData.TeamMembers.CountOfProjectFacilitator == 1) && (loggedOnMember.MemberType == TeamMemberData.UserTypes.eProjectFacilitator)) { CraftingInfo.ProjectFacilitatorMemberID = loggedOnMember.MemberGuid; return; } // fall thru means either the logged in person isn't a PF or there are multiple, // so, ask the user to tell which PF added this story var dlg = new MemberPicker(storyProjectData, TeamMemberData.UserTypes.eProjectFacilitator) { Text = "Choose the Project Facilitator that entered this story" }; if (dlg.ShowDialog() != DialogResult.OK) { return; } CraftingInfo.ProjectFacilitatorMemberID = dlg.SelectedMember.MemberGuid; } }
private void buttonBrowseForStoryCrafter_Click(object sender, EventArgs e) { MemberPicker dlg = new MemberPicker(_theStoryProjectData, TeamMemberData.UserTypes.eCrafter); if (dlg.ShowDialog() == DialogResult.OK) { textBoxStoryCrafter.Tag = dlg.SelectedMember; InitToolboxTextTip(dlg.SelectedMember, textBoxStoryCrafter); } }
protected TeamMemberData SelectedUnsMember() { MemberPicker dlg = new MemberPicker(_theStoryProjectData, TeamMemberData.UserTypes.eUNS); if (dlg.ShowDialog() == DialogResult.OK) { return(dlg.SelectedMember); } return(null); }
private void checkBoxOutsideEnglishBackTranslator_CheckedChanged(object sender, EventArgs e) { if (checkBoxOutsideEnglishBackTranslator.Checked && !_storyProjectData.IsASeparateEnglishBackTranslator) { // if this user is saying that there's an external BTer, then query for it. var dlg = new MemberPicker(_storyProjectData, TeamMemberData.UserTypes.eEnglishBacktranslator) { Text = "Choose the member that will do English BTs" }; if (dlg.ShowDialog() == DialogResult.OK) { return; } checkBoxOutsideEnglishBackTranslator.Checked = false; } Modified = true; }
private void radioButtonIndependentConsultant_CheckedChanged(object sender, EventArgs e) { if (radioButtonIndependentConsultant.Checked && !_storyProjectData.TeamMembers.IsThereAnIndependentConsultant) { // if this user is saying that there's a first pass mentor, but there doesn't // appear to be one, then query for it. var dlg = new MemberPicker(_storyProjectData, TeamMemberData.UserTypes.eIndependentConsultant) { Text = "Choose the member that is the independent consultant" }; if (dlg.ShowDialog() == DialogResult.OK) { return; } radioButtonIndependentConsultant.Checked = false; } Modified = true; }
private void checkBoxFirstPassMentor_CheckedChanged(object sender, EventArgs e) { if (checkBoxFirstPassMentor.Checked && !_storyProjectData.TeamMembers.IsThereAFirstPassMentor) { // if this user is saying that there's a first pass mentor, but there doesn't // appear to be one, then query for it. var dlg = new MemberPicker(_storyProjectData, TeamMemberData.UserTypes.eFirstPassMentor) { Text = "Choose the member that is the first-pass mentor" }; if (dlg.ShowDialog() == DialogResult.OK) { return; } checkBoxFirstPassMentor.Checked = false; } Modified = true; }
private void checkBoxOutsideEnglishBackTranslator_CheckedChanged(object sender, System.EventArgs e) { if (checkBoxOutsideEnglishBackTranslator.Checked && !_storyProjectData.IsASeparateEnglishBackTranslator) { // if this user is saying that there's an external BTer, but there doesn't // appear to be one, then query for it. var dlg = new MemberPicker(_storyProjectData, TeamMemberData.UserTypes.eEnglishBacktranslator) { Text = "Choose the member that will do English BTs" }; if (dlg.ShowDialog() != DialogResult.OK) { checkBoxOutsideEnglishBackTranslator.Checked = false; return; } // noop } ColumnEnglishBackTranslator.Visible = checkBoxOutsideEnglishBackTranslator.Checked; InitGrid(); }