Skip to content
Permalink
Browse files

QuranCode 6.19.1279

Proximity & Root FindSelectedWord
  • Loading branch information...
heliwave committed Aug 5, 2019
1 parent c28083a commit d01a8dc02c22c3dc749eb73cfde3aaac158a3dc6
Showing with 2,405 additions and 2,390 deletions.
  1. +17 −18 QuranCode/MainForm.cs
  2. BIN QuranCode1433.Source.zip
  3. BIN QuranCode1433.zip
  4. +2,388 −2,372 Server/Server.cs
  5. BIN Solution.vs2013.v12.suo
{
PopulateWordsListBoxWithCurrentOrNextWords();
}
else if (m_text_search_type == TextSearchType.Root)
{
PopulateWordsListBoxWithRoots();
}
else if (m_text_search_type == TextSearchType.Proximity)
{
PopulateWordsListBoxWithCurrentWords();
}
else if (m_text_search_type == TextSearchType.Root)
{
PopulateWordsListBoxWithRoots();
}
}
private void PopulateWordsListBoxWithCurrentOrNextWords()
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_location_in_chapter, m_text_location_in_verse, m_text_location_in_word, TextWordness.WholeWord, m_case_sensitive, m_with_diacritics, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
}
break;
case TextSearchType.Root:
case TextSearchType.Proximity:
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_proximity_type, TextWordness.WholeWord, m_case_sensitive, m_with_diacritics);
}
break;
case TextSearchType.Proximity:
case TextSearchType.Root:
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_proximity_type, TextWordness.WholeWord, m_case_sensitive, m_with_diacritics);
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
}
break;
}

if (word_texts.Count > 0)
{
text += "(";
foreach (string word_text in word_texts)
{
if (startup_text.Length > 0)
{
text = text.Remove(text.Length - 1, 1);
}
text += ")";

if (!String.IsNullOrEmpty(text))
{
switch (m_text_search_type)
{
case TextSearchType.Exact:
{
text = "(" + text + ")";
if (FindByTextTextBox.Text.EndsWith(" "))
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_location_in_chapter, m_text_location_in_verse, m_text_location_in_word, TextWordness.Any, m_case_sensitive, m_with_diacritics, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
}
}
break;
case TextSearchType.Root:
case TextSearchType.Proximity:
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_proximity_type, TextWordness.Any, m_case_sensitive, m_with_diacritics);
}
break;
case TextSearchType.Proximity:
case TextSearchType.Root:
{
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_language_type, null, m_text_proximity_type, TextWordness.Any, m_case_sensitive, m_with_diacritics);
m_client.FindPhrases(TextSearchBlockSize.Verse, text, m_multiplicity, m_multiplicity_number_type, m_multiplicity_comparison_operator, m_multiplicity_remainder);
}
break;
}
}
}

if (FindByTextAllWordsRadioButton.Checked)
if (FindByTextAnyWordRadioButton.Checked)
{
m_text_proximity_type = TextProximityType.AllWords;
m_text_proximity_type = TextProximityType.AnyWord;
}
else if (FindByTextAnyWordRadioButton.Checked)
else if (FindByTextAllWordsRadioButton.Checked)
{
m_text_proximity_type = TextProximityType.AnyWord;
m_text_proximity_type = TextProximityType.AllWords;
}

//FindByProximity(text, m_language_type, translation, m_text_proximity_type);
BIN +663 Bytes (100%) QuranCode1433.Source.zip
Binary file not shown.
BIN +162 Bytes (100%) QuranCode1433.zip
Binary file not shown.

0 comments on commit d01a8dc

Please sign in to comment.
You can’t perform that action at this time.