Пример #1
0
        public EditNameDialog(MainWindow mainWindow, MusicFile musicFile)
        {
            InitializeComponent();
            this.mainWindow = mainWindow;
            currentFile     = musicFile;

            checkOverrideParent.Checked = currentFile.AlternateParentFolder != null;
            parentFolderText.Text       = currentFile.GetParent();
            parentFolderText.ReadOnly   = !checkOverrideParent.Checked;

            checkOverrideAlbum.Checked = currentFile.AlternateAlbumFolder != null;
            albumFolderText.Text       = currentFile.CreateFolderName();
            albumFolderText.ReadOnly   = !checkOverrideAlbum.Checked;
        }
Пример #2
0
 private void OnOverrideAlbumChanged(object sender, EventArgs e)
 {
     albumFolderText.ReadOnly = !checkOverrideAlbum.Checked;
     albumFolderText.Text     = currentFile.CreateFolderName();
 }