Ejemplo n.º 1
0
 private void resetMatchFeature()
 {
     DatingFeature.RestartFeature();
     listBoxAgeRange.ClearSelected();
     listBoxMatchingFriends.Items.Clear();
     listBoxMatchingFriends.ClearSelected();
     checkBoxMale.Checked   = false;
     checkBoxFemale.Checked = false;
 }
Ejemplo n.º 2
0
        private void checkBoxGender_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox currCheckBox   = sender as CheckBox;
            string   requiredGender = currCheckBox.Text;

            if (currCheckBox.Checked)
            {
                DatingFeature.RequiredGender = DatingFeature.ParseGender(requiredGender);
                checkBoxFemale.Checked       = requiredGender.Equals("Female");
                checkBoxMale.Checked         = requiredGender.Equals("Male");
            }
            else
            {
                if (checkBoxFemale.Checked == false && checkBoxMale.Checked == false)
                {
                    DatingFeature.RequiredGender = null;
                }
            }

            setButtonMatchState();
        }
Ejemplo n.º 3
0
        private void searchForMatchingFriends()
        {
            bool state = false;

            setStateDatingFeatureButtons(state);
            foreach (User friend in m_LoggedInUser.Friends)
            {
                if (DatingFeature.IsFriendMatchToUserRequests(friend))
                {
                    listBoxMatchingFriends.Invoke(new Action(() => listBoxMatchingFriends.Items.Add(friend)));
                    friend.ReFetch(DynamicWrapper.eLoadOptions.Full);
                }
            }

            if (listBoxMatchingFriends.Items.Count == 0)
            {
                listBoxMatchingFriends.Invoke(new Action(() => listBoxMatchingFriends.Items.Add("No Matching Friends.")));
                listBoxMatchingFriends.Invoke(new Action(() => listBoxMatchingFriends.Enabled = false));
            }

            setStateDatingFeatureButtons(!state);
        }
Ejemplo n.º 4
0
 private void buildFeaturesSetting()
 {
     DatingFeature.RestartFeature();
 }