Пример #1
0
 void add_folder_to_listboxfiles(string filename)
 {
     DirectoryItem directoryItem = new DirectoryItem(filename);
     listBoxFiles.Items.Add(directoryItem);
 }
Пример #2
0
        /// <summary>
        /// Adds a folder to the burn list
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonAddFolders_Click(object sender, EventArgs e)
        {
            if (fldr_dialog.ShowDialog(this) == DialogResult.OK)
            {
                DirectoryItem directoryItem = new DirectoryItem(fldr_dialog.SelectedPath);
                listBoxFiles.Items.Add(directoryItem);

                UpdateCapacity();
                EnableBurnButton();
            }
        }