Пример #1
0
        public bool addNotWord(out SearchLogNotWordItem notWordItem0, string word0, bool isTitleOnly0)
        {
            string word1 = removeAndkeyFromNotWord(word0);

            foreach (var item in _notWordItems)
            {
                if (item.word == word1)
                {
                    MessageBox.Show("「" + word1 + "」は登録済みです。", "通知", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                    notWordItem0 = null;
                    return(false);
                }
            }
            notWordItem0 = new SearchLogNotWordItem(word1)
            {
                searchLogID = ID,
                isTitleOnly = isTitleOnly0
            };
            notWordItem_Add(notWordItem0);

            return(true);
        }
Пример #2
0
 public void notWordItem_Add(SearchLogNotWordItem notWordItem0)
 {
     _isNotWordItemChanged = true;
     _notWordItems.Add(notWordItem0);
 }
Пример #3
0
        public bool addNotWord(out SearchLogNotWordItem notWordItem0, long searchLogID0, string word0, bool isTitleOnly0)
        {
            string word1 = word0.Trim();
            foreach (var item in notWordItems)
            {
                if (item.word == word1)
                {
                    MessageBox.Show("「" + word1 + "」は登録済みです。", "通知", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                    notWordItem0 = null;
                    return false;
                }
            }
            notWordItem0 = new SearchLogNotWordItem(word1)
            {
                searchLogID = searchLogID0,
                isTitleOnly = isTitleOnly0
            };
            notWordItems.Add(notWordItem0);

            return true;
        }