Esempio n. 1
0
        /// <summary>
        /// UI callback: create new entry
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNewEntry_Click(object sender, RoutedEventArgs e)
        {
            EditEntryWindow w = new EditEntryWindow();

            if(w.ShowDialog() == true)
            {
                if (w.CreateEntry(out AudioEntry entry))
                    Library.AddEntry(entry);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// UI callback: edit selected entry
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEditEntry_Click(object sender, RoutedEventArgs e)
        {
            if(SelectedLibraryEntry != null)
            {
                EditEntryWindow w = new EditEntryWindow(SelectedLibraryEntry);

                if (w.ShowDialog() == true)
                {
                    //w.ModifyEntry(ref SelectedLibraryEntry);
                }
            }
        }