Ejemplo n.º 1
0
 // 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); }
 }
Ejemplo n.º 2
0
 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); }
 }