private void OnClickLoad(object sender, EventArgs e) { FiddlerControls.Options.ProfileName = profiles[comboBoxLoad.SelectedIndex] + ".xml"; Options.LoadProfile(profiles[comboBoxLoad.SelectedIndex] + ".xml"); Exit = false; Close(); }
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(); }
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(); }