LoadProfile() public static method

public static LoadProfile ( string filename ) : void
filename string
return void
示例#1
0
 private void OnClickLoad(object sender, EventArgs e)
 {
     FiddlerControls.Options.ProfileName = profiles[comboBoxLoad.SelectedIndex] + ".xml";
     Options.LoadProfile(profiles[comboBoxLoad.SelectedIndex] + ".xml");
     Exit = false;
     Close();
 }
示例#2
0
 private void OnClickCreate(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(textBoxCreate.Text))
     {
         MessageBox.Show("Profile name is missing", "New Profile", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     FiddlerControls.Options.ProfileName = "Options_" + textBoxCreate.Text + ".xml";
     Options.LoadProfile(profiles[comboBoxBasedOn.SelectedIndex] + ".xml");
     Exit = false;
     Close();
 }
示例#3
0
        private void LoadSelectedProfile()
        {
            if (this.comboBoxLoad.SelectedIndex == -1)
            {
                return;
            }

            FiddlerControls.Options.ProfileName = this.profiles[this.comboBoxLoad.SelectedIndex] + ".xml";
            Options.LoadProfile(this.profiles[this.comboBoxLoad.SelectedIndex] + ".xml");
            this.Exit = false;
            this.Close();
        }