Exemplo n.º 1
0
        /// <summary>
        /// Called by clicking on the Genres textbox.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TextBox_Genres_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            GenresSelector gs = new GenresSelector();

            gs.Owner  = this;
            gs.Genres = this.genres;
            gs.ShowDialog();

            if (gs.Saved)
            {
                this.SetGenres(gs.SelectedGenres);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Called by clicking on the genres textbox.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TextBox_Genres_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (this.genres == null)
            {
                this.genres = new List <Entity.Genre>();
            }

            GenresSelector gs = new GenresSelector();

            gs.Owner  = this;
            gs.Genres = this.genres;
            gs.ShowDialog();

            if (gs.Saved)
            {
                this.SetGenres(gs.SelectedGenres);
            }
        }