コード例 #1
0
ファイル: SerieEdit.xaml.cs プロジェクト: nostrenz/hieda
        /// <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);
            }
        }
コード例 #2
0
ファイル: CustomSearch.xaml.cs プロジェクト: nostrenz/hieda
        /// <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);
            }
        }