/// <summary>
        /// Handles the Click event of the btnSearch control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void btnSearch_Click(object sender, EventArgs e)
        {
            this.btnSearch.Enabled = false;
            this.txtSearch.Enabled = false;

            var theTvdb = new TheTvdb();

            theTvdb.DoFullSearch(this.txtSearch.Text);
            this.UpdateDataBindings();

            this.btnSearch.Enabled = true;
            this.txtSearch.Enabled = true;
            this.txtSearch.Text    = string.Empty;
        }
Example #2
0
        /// <summary>
        /// Handles the Click event of the btnSearch control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.txtSearch.Text))
            {
                XtraMessageBox.Show("Please enter a series to search for in the 'Add New Series' field.", "Empty search string");
                return;
            }

            this.btnSearch.Enabled = false;
            this.txtSearch.Enabled = false;

            var theTvdb = new TheTvdb();

            theTvdb.DoFullSearch(this.txtSearch.Text);
            this.UpdateDataBindings();

            this.btnSearch.Enabled = true;
            this.txtSearch.Enabled = true;
            this.txtSearch.Text    = string.Empty;
        }