コード例 #1
0
        private void genderListInit(MatchFinder i_MatchFinder)
        {
            if (this.checkBoxMale.Checked)
            {
                i_MatchFinder.SelectedGender.Add("Male", true);
            }
            else
            {
                i_MatchFinder.SelectedGender.Add("Male", false);
            }

            if (this.checkBoxFemale.Checked)
            {
                i_MatchFinder.SelectedGender.Add("Female", true);
            }
            else
            {
                i_MatchFinder.SelectedGender.Add("Female", false);
            }
        }
コード例 #2
0
        private void genderListInit(MatchFinder i_MatchFinder, bool i_IsFemaleChecked, bool i_IsMaleChecked)
        {
            if (i_IsMaleChecked)
            {
                i_MatchFinder.SelectedGender.Add("Male", true);
            }
            else
            {
                i_MatchFinder.SelectedGender.Add("Male", false);
            }

            if (i_IsFemaleChecked)
            {
                i_MatchFinder.SelectedGender.Add("Female", true);
            }
            else
            {
                i_MatchFinder.SelectedGender.Add("Female", false);
            }
        }
コード例 #3
0
 private void matchInitializer(MatchFinder i_Feature)
 {
     this.genderListInit(i_Feature);
     i_Feature.AgeRangeSelected = this.comboBoxAges.SelectedItem.ToString();
 }
コード例 #4
0
 public void MatchInitializer(MatchFinder i_Feature, bool i_IsFemaleChecked, bool i_IsMaleChecked, string i_AgeRangeSelected)
 {
     this.genderListInit(i_Feature, i_IsFemaleChecked, i_IsMaleChecked);
     i_Feature.AgeRangeSelected = i_AgeRangeSelected.ToString();
 }