Пример #1
0
 private void readBtn_Click(object sender, EventArgs e)
 {
     
     if (opnFileDialog.ShowDialog() == DialogResult.Cancel)
     {
         return;
     }
     else
     {
         nameLstBox.Items.Clear();
         foreach (string s in SaveToFile.Read(opnFileDialog.FileName))
         {
             nameLstBox.Items.Add(s);
         }
     }
 }