// saves list into .lst file inside lst directory private void saveButton_Click(object sender, EventArgs e) { try { if (string.IsNullOrWhiteSpace(imgListNameTextBox.Text)) { throw new Exception("Preencha o campo com o nome do arquivo!"); } DataGridView dgv = imgPathDataGridView; DGVManipulation.saveColumnToListFile(dgv, 2, path, imgListNameTextBox.Text + "_image"); Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void saveButton_Click(object sender, EventArgs e) { try { if (!this.ValidateChildren(ValidationConstraints.Enabled)) { MessageBox.Show("Algum campo não foi preenchido de forma correta."); } else { DataGridView dgv = audioPathDataGridView; DGVManipulation.saveColumnToListFile(dgv, 1, path, audioListNameTextBox.Text + "_audio"); Close(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }