private void HarvestElementId(TextBox tb, string strDefaultValue) { string strHtmlSource = GetHtmlSource(textBoxFileSpec.Text); if (String.IsNullOrEmpty(strHtmlSource)) { return; } ElementPicker dlg = new ElementPicker(strHtmlSource, @"textarea .* id=""(.*?)""", strDefaultValue); if (dlg.ShowDialog() == DialogResult.OK) { tb.Text = dlg.SelectedElement; } }
protected void HarvestConvertFunctionName(TextBox textBoxConvertFunction, string strDefaultValue) { string strHtmlSource = GetHtmlSource(textBoxFileSpec.Text); if (String.IsNullOrEmpty(strHtmlSource)) { return; } var dlg = new ElementPicker(strHtmlSource, @"on[cC]lick=""(.*?)\(", strDefaultValue); if (dlg.ShowDialog() == DialogResult.OK) { textBoxConvertFunction.Text = dlg.SelectedElement; } }