Dialog for selecting a show.
Ejemplo n.º 1
0
        /// <summary>
        ///     Handles the Set show button being clicked.
        /// </summary>
        /// <param name="sender">
        ///     The sender of the event.
        /// </param>
        /// <param name="e">
        ///     The arguments of the event.
        /// </param>
        private void SetShowButtonClick(object sender, EventArgs e)
        {
            var dialog = new ShowSelectDialog(controller.Shows);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                controller.SetShow(dialog.SelectedShow);

                // Update the listitems with the altered results
                ResetListItems();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the Set show button being clicked.
        /// </summary>
        /// <param name="sender">
        /// The sender of the event. 
        /// </param>
        /// <param name="e">
        /// The arguments of the event. 
        /// </param>
        private void SetShowButtonClick(object sender, EventArgs e)
        {
            var dialog = new ShowSelectDialog(this.controller.Shows);
            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                this.controller.SetShow(dialog.SelectedShow);

                // Update the listitems with the altered results
                this.ResetListItems();
            }
        }