Пример #1
0
 private void SaveInitialCSV()
 {
     GetNewCSVFile();
     var musicCsv = new MusicCsv(musicList);
     musicCsv.SaveCsvFile(textBox_CSV_FilePath.Text);
 }
Пример #2
0
        private void Load_Save_Work()
        {
            iForm.ShowProgressBar = true;
            int countItens = 0;

            var musCsv = new MusicCsv(textBox_CSV_FilePath.Text);

            try
            {
                musCsv.LoadAndSave();
                //musicList = musCsv.LoadAndSave();
            }
            catch (Exception ex)
            {
                ShowErrorMessage(ex);
                return;
            }

            //iForm.TotalItens = musicList.Count;

            //iForm.Mesage = "saving " + musicList.Count + " files...";

            //foreach (MusicFile mus in musicList)
            //{
            //    try
            //    {
            //        mus.Save(new List<Mp3Field>()); //TODO: salvar conforme a lista de campos selecionada
            //    }
            //    catch (Exception ex)
            //    {
            //        ShowErrorMessage(ex);
            //        return;
            //    }

            //    countItens++;
            //    iForm.ActualItem = countItens;
            //}
            //iForm.Mesage = countItens + " saved";

            iForm.Mesage = "all itens successfully saved";
            iForm.ShowProgressBar = false;
            iForm.FinishSaving();
        }