Beispiel #1
0
 void add_files_to_listboxfiles(string filename)
 {
     FileItem fileItem = new FileItem(filename);
     listBoxFiles.Items.Add(fileItem);
 }
Beispiel #2
0
        public void add_files(string path)
        {
            var fileItem = new FileItem(path);
            lb.Items.Add(fileItem);
            UpdateCapacity();
            EnableBurnButton();

         //   MessageBox.Show(path);
        }
Beispiel #3
0
        /// <summary>
        /// Adds a file to the burn list
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonAddFiles_Click(object sender, EventArgs e)
        {
            if (file_dialog.ShowDialog(this) == DialogResult.OK)
            {
                FileItem fileItem = new FileItem(file_dialog.FileName);
                listBoxFiles.Items.Add(fileItem);

                UpdateCapacity();
                EnableBurnButton();
            }
        }