Esempio n. 1
0
 /// <summary>
 /// display the form to add custom headers
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAddHeaders_Click(object sender, EventArgs e)
 {
     try
     {
         Forms.frmAddHeaders aHdrForm = new Forms.frmAddHeaders();
         aHdrForm.Owner = this;
         aHdrForm.ShowDialog(this);
         if (hdrName != null && hdrValue != null)
         {
             int n = dgGridHeaders.Rows.Add();
             dgGridHeaders.Rows[n].Cells[0].Value = hdrName;
             dgGridHeaders.Rows[n].Cells[1].Value = hdrValue;
         }
     }
     catch (Exception ex)
     {
         logger.Log("Error: " + ex.Message);
         logger.Log("StackTrace: " + ex.StackTrace);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// display the form to add custom headers
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAddHeaders_Click(object sender, EventArgs e)
 {
     try
     {
         Forms.frmAddHeaders aHdrForm = new Forms.frmAddHeaders();
         aHdrForm.Owner = this;
         aHdrForm.ShowDialog(this);
         if (hdrName != null && hdrValue != null)
         {
             int n = dGridHeaders.Rows.Add();
             dGridHeaders.Rows[n].Cells[0].Value = hdrName;
             dGridHeaders.Rows[n].Cells[1].Value = hdrValue;
         }
     }
     catch (Exception ex)
     {
         _logger.Log("Error: " + ex.Message);
         _logger.Log("StackTrace: " + ex.StackTrace);
     }
 }