Пример #1
0
        private void initFeatureComboBox()
        {
            FeatureMenuItem filerFormMenuItem = new FeatureMenuItem(FormFactory.CreateForm, Utils.k_findMeAMatchHeadLine, Utils.eFormName.Filter);
            FeatureMenuItem gameFormMenuItem  = new FeatureMenuItem(FormFactory.CreateForm, Utils.k_GueesingGameHeadLine, Utils.eFormName.Game);

            FeatureComboBox.AddRange(gameFormMenuItem, filerFormMenuItem);
        }
Пример #2
0
 private void FeatureComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (MainFormFacade.s_FriendList.Count > 0)
     {
         FeatureComboBox.OnClickOption();
     }
     else
     {
         MessageBox.Show(Utils.k_EmptyFriendListMessage);
     }
 }
Пример #3
0
        private void CreateRequirementButton_Click(object sender, EventArgs e)
        {
            Requirement newRequirement = new Requirement();

            newRequirement.FeatureId = featureRepository.GetFeatureByTitle(FeatureComboBox.GetItemText(FeatureComboBox.SelectedItem), requirement.ProjectId).Id;
            newRequirement.ProjectId = requirement.ProjectId;
            newRequirement.Statement = StatementTextBox.Text;
            newRequirement.Id        = requirement.Id;

            string result = requirementRepository.Modify(newRequirement);

            if (!result.Equals(""))
            {
                MessageBox.Show(result, "Attention");
            }
            else
            {
                this.Close();
            }
        }