private void resetMatchFeature() { DatingFeature.RestartFeature(); listBoxAgeRange.ClearSelected(); listBoxMatchingFriends.Items.Clear(); listBoxMatchingFriends.ClearSelected(); checkBoxMale.Checked = false; checkBoxFemale.Checked = false; }
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(); }
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); }
private void buildFeaturesSetting() { DatingFeature.RestartFeature(); }