Exemple #1
0
        /// <summary>入力が妥当か</summary>
        private bool IsValidInput()
        {
            // URLテキストボックス入力チェック
            if (txt_URL.Text == string.Empty)
            {
                MessageBox.Show(Define.ERR_TEXTBOX_URL_EMPTY, "", MessageBoxButtons.OK);
                return(false);
            }

            // 検索文字テキストボックス入力チェック
            if (ErrCheck.IsEmptySearchStringTextBox(Controls))
            {
                MessageBox.Show(Define.ERR_TEXTBOX_URL_SEARCHSTRING, "", MessageBoxButtons.OK);
                return(false);
            }

            string errMsg = string.Empty;

            // URLが爆サイ掲示板であるか確認
            if (!ErrCheck.IsValidUrl(txt_URL.Text, out errMsg))
            {
                MessageBox.Show(errMsg, "", MessageBoxButtons.OK);
                return(false);
            }

            return(true);
        }