Пример #1
0
 private void getCsvDataAndPopulate()
 {
     using (var dialog = new OpenFileDialog())
     {
         dialog.Filter = "Comma Seperated Values Files (.csv)|*.csv";
         dialog.Title  = "Open File";
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             if (!_shopifyData.ReadData(dialog.FileName))
             {
                 MessageBox.Show(string.Format("Failed to read file '{0}'", dialog.FileName), "Failure");
             }
         }
     }
     enableControls();
     updateControls();
 }