Exemple #1
0
 void ClearEditTab()
 {
     EditTBP.SetText("");
     BaseTabs.TabPages["EditingTab"].Text = "  ";
     if (BaseTabs.SelectedTab.Name == "EditingTab")
     {
         BaseTabs.SelectTab("HeadersTab");
     }
 }
Exemple #2
0
        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();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
 void SetEditTab(string Value)
 {
     EditTBP.SetText(Value);
     BaseTabs.TabPages["EditingTab"].Text = "  Selected Parameter Value  ";
     BaseTabs.SelectTab("EditingTab");
 }
Exemple #5
0
 private void SaveEditsLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     BodyFormatPluginsParametersGrid.Rows[ExpandedParameterIndex].Cells[1].Value = EditTBP.GetText();
     BodyTypeFormatPluginsParametersChanged = true;
     BaseTabs.SelectTab("BodyParametersTab");
     ClearEditTab();
 }
Exemple #6
0
 void SetEditTab(byte[] Value)
 {
     EditTBP.SetBytes(Value);
     BaseTabs.TabPages["EditingTab"].Text = "  Selected Parameter Value  ";
     BaseTabs.SelectTab("EditingTab");
 }