Пример #1
0
 private void OnTextChaged(IUIObject obj)
 {
     this.m_QuestSearchList.Clear();
     this.m_i32CurPage = 1;
     if (this.m_Questreset_searchbase.Text == string.Empty)
     {
         foreach (CQuestGroup current in this.m_QuestGroupList)
         {
             if (this.m_CurChapter.i16QuestChapterUnique == current.GetChapterUnique())
             {
                 this.m_QuestSearchList.Add(current);
             }
         }
     }
     else
     {
         for (int i = 0; i < this.m_QuestGroupList.Count; i++)
         {
             if (InitialSearch.IsCheckString(this.m_QuestGroupList[i].GetGroupTitle(), this.m_Questreset_searchbase.Text))
             {
                 this.m_QuestSearchList.Add(this.m_QuestGroupList[i]);
             }
         }
     }
     this.m_QuestSearchList.Sort(new Comparison <CQuestGroup>(QuestResetUI_DLG.AscendingNum));
     this.SetCurrentPage();
     this.ShowList();
 }
Пример #2
0
 public static bool[] IsCheckString(string[] szValue, string szSearchKeyWord)
 {
     if (szValue == null)
     {
         return(null);
     }
     if (szValue.Length == 0)
     {
         return(null);
     }
     if (szSearchKeyWord == null)
     {
         return(null);
     }
     if (szSearchKeyWord.Length == 0)
     {
         return(null);
     }
     bool[] array    = new bool[szValue.Length];
     bool[] bInitial = InitialSearch.IsInitialHanGulKeyWorld(szSearchKeyWord);
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = InitialSearch.IsCheckString(szValue[i], szSearchKeyWord, bInitial);
     }
     return(array);
 }
Пример #3
0
 public static bool IsCheckString(string szValue, string szSearchKeyWord)
 {
     if (szValue == null)
     {
         return(false);
     }
     if (szValue.Length == 0)
     {
         return(false);
     }
     if (szSearchKeyWord == null)
     {
         return(false);
     }
     if (szSearchKeyWord.Length == 0)
     {
         return(false);
     }
     bool[] bInitial = InitialSearch.IsInitialHanGulKeyWorld(szSearchKeyWord);
     return(InitialSearch.IsCheckString(szValue, szSearchKeyWord, bInitial));
 }
Пример #4
0
    private void OnTextChaged(IUIObject obj)
    {
        this.m_ShowList.Clear();
        string text = this._tfSearchSoldier.Text;

        text = text.TrimEnd(new char[0]);
        if (this._tfSearchSoldier.Text != string.Empty)
        {
            for (int i = 0; i < this.SoldierList.Count; i++)
            {
                if (InitialSearch.IsCheckString(this.SoldierList[i].Name, text))
                {
                    this.m_ShowList.Add(this.SoldierList[i]);
                }
            }
            this.ShowList();
        }
        else
        {
            this.ShowSoldierList();
        }
    }