Esempio n. 1
0
        /// <summary>
        /// Show a dialog to prompt for a new name for a part.
        /// </summary>
        /// <param name="part">The part to rename or <c>null</c> to prompt for a name for a new part.</param>
        /// <returns>The window.</returns>
        private RenamePartWindow ShowRenamePartDialog(SongPart part)
        {
            RenamePartWindow win = new RenamePartWindow(song, part);

            win.Owner = parent;
            win.ShowDialog();
            return(win);
        }
Esempio n. 2
0
 /// <summary>
 /// Show a dialog to prompt for a new name for a part.
 /// </summary>
 /// <param name="part">The part to rename or <c>null</c> to prompt for a name for a new part.</param>
 /// <returns>The window.</returns>
 private RenamePartWindow ShowRenamePartDialog(SongPart part)
 {
     RenamePartWindow win = new RenamePartWindow(song, part);
     win.Owner = parent;
     win.ShowDialog();
     return win;
 }