Esempio n. 1
0
        private void HashTag_AddButton_Click(object sender, RoutedEventArgs e)
        {
            HashTagInputWindow win = new HashTagInputWindow();

            win.Owner = this;
            bool?ret = win.ShowDialog();

            if (!ret.HasValue || !ret.Value)
            {
                return;
            }
            string hashTag = win.HashTagText;

            for (int i = 0; i < _mwin.HashTagList.Count; i++)
            {
                if (hashTag.Equals(_mwin.HashTagList[i], StringComparison.InvariantCultureIgnoreCase))
                {
                    MessageBox.Show("すでに同じハッシュタグが登録されています");
                    return;
                }
            }
            _mwin.HashTagList.Add(hashTag);
        }
Esempio n. 2
0
 private void HashTag_AddButton_Click(object sender, RoutedEventArgs e)
 {
     HashTagInputWindow win = new HashTagInputWindow ();
     win.Owner = this;
     bool? ret = win.ShowDialog ();
     if (!ret.HasValue || !ret.Value)
         return;
     string hashTag = win.HashTagText;
     for (int i = 0; i < _mwin.HashTagList.Count; i ++)
         if (hashTag.Equals (_mwin.HashTagList[i], StringComparison.InvariantCultureIgnoreCase)) {
             MessageBox.Show ("すでに同じハッシュタグが登録されています");
             return;
         }
     _mwin.HashTagList.Add (hashTag);
 }