Exemple #1
0
        private void OnEditTagCommand(MouseDoubleClickArgs parameter)
        {
            ListView tagsListView = parameter.Sender as ListView;

            if (tagsListView == null)
            {
                return;
            }

            Tag selectedTag = tagsListView.SelectedItem as Tag;

            if (selectedTag == null)
            {
                return;
            }

            EditTag(selectedTag);
        }
        private void OnEditGenreCommand(MouseDoubleClickArgs parameter)
        {
            ListView genresListView = parameter.Sender as ListView;

            if (genresListView == null)
            {
                return;
            }

            Genre selectedGenre = genresListView.SelectedItem as Genre;

            if (selectedGenre == null)
            {
                return;
            }

            selectedGenre.NeedValidate = true;

            CreateOrEditGenre(selectedGenre, true);
        }