private void btnAddRequestHeader_Click(object sender, EventArgs e) { try { AddRequestHeaders aHdrForm = new AddRequestHeaders(); aHdrForm.Owner = this; aHdrForm.ShowDialog(this); if (hdrName != null && hdrValue != null) { AddRequestHeader(hdrName, hdrValue); } } catch (Exception ex) { logger.Log("Add Header Error:"); logger.Log(ex.Message); logger.Log(ex.StackTrace); } }