示例#1
0
 private void btnDeleteLoadFile_Click(object sender, EventArgs e)
 {
     if (lbFileNames.SelectedItem != null)
     {
         FADataController.DeleteFL(lbFileNames.SelectedItem.ToString());
         lbFileNames.Items.Remove(lbFileNames.SelectedItem);
     }
 }
示例#2
0
        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);
                }
            }
        }