void ClearEditTab() { EditTBP.SetText(""); BaseTabs.TabPages["EditingTab"].Text = " "; if (BaseTabs.SelectedTab.Name == "EditingTab") { BaseTabs.SelectTab("HeadersTab"); } }
private void SaveEditsLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string Name = BodyFormatPluginsParametersGrid.Rows[ExpandedParameterIndex].Cells[0].Value.ToString(); string NormalValue = EditTBP.GetText(); string EncodedValue = ""; if (EditTBP.IsBinary) { EncodedValue = Tools.Base64EncodeByteArray(EditTBP.GetBytes()); } else { EncodedValue = Tools.Base64Encode(EditTBP.GetText()); } BodyFormatPluginsParametersGrid.Rows.RemoveAt(ExpandedParameterIndex); BodyFormatPluginsParametersGrid.Rows.Insert(ExpandedParameterIndex, new object[] { Name, NormalValue, Properties.Resources.Glass, EncodedValue }); BodyFormatPluginsParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); BodyTypeFormatPluginsParametersChanged = true; BaseTabs.SelectTab("BodyParametersTab"); ClearEditTab(); }
private void SaveEditsLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { switch (ExpandedParameterSection) { case ("UrlPathParts"): UrlPathPartsParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); UrlPathPartsChanged = true; BaseTabs.SelectTab("UrlPathPartsParametersTab"); break; case ("Query"): QueryParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); QueryParametersChanged = true; BaseTabs.SelectTab("QueryParametersTab"); break; case ("Body"): BodyParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); BodyParametersChanged = true; BaseTabs.SelectTab("BodyParametersTab"); break; case ("Cookie"): CookieParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); CookieParametersChanged = true; BaseTabs.SelectTab("CookieParametersTab"); break; case ("Headers"): HeadersParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); HeadersParametersChanged = true; BaseTabs.SelectTab("HeadersParametersTab"); break; } ClearEditTab(); }
void SetEditTab(string Value) { EditTBP.SetText(Value); BaseTabs.TabPages["EditingTab"].Text = " Selected Parameter Value "; BaseTabs.SelectTab("EditingTab"); }
private void SaveEditsLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { BodyFormatPluginsParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText(); BodyTypeFormatPluginsParametersChanged = true; BaseTabs.SelectTab("BodyParametersTab"); ClearEditTab(); }
void SetEditTab(byte[] Value) { EditTBP.SetBytes(Value); BaseTabs.TabPages["EditingTab"].Text = " Selected Parameter Value "; BaseTabs.SelectTab("EditingTab"); }