private void btnDeleteLoadFile_Click(object sender, EventArgs e) { if (lbFileNames.SelectedItem != null) { FADataController.DeleteFL(lbFileNames.SelectedItem.ToString()); lbFileNames.Items.Remove(lbFileNames.SelectedItem); } }
private void button1_Click(object sender, EventArgs e) // Добавление файла с данными { string filename = ""; if (openFileDialog1.ShowDialog() == DialogResult.OK) { filename = openFileDialog1.FileName; if (FADataController.AddFL(filename)) { lbFileNames.Items.Add(filename); } } }