void add_files_to_listboxfiles(string filename) { FileItem fileItem = new FileItem(filename); listBoxFiles.Items.Add(fileItem); }
public void add_files(string path) { var fileItem = new FileItem(path); lb.Items.Add(fileItem); UpdateCapacity(); EnableBurnButton(); // MessageBox.Show(path); }
/// <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(); } }