private void LoadSelectedProfile() { if (comboBoxLoad.SelectedIndex == -1) { return; } Options.ProfileName = $"{_profiles[comboBoxLoad.SelectedIndex]}.xml"; FiddlerOptions.Logger.Information("Loading profile: {profileName}", Options.ProfileName); FiddlerOptions.LoadProfile($"{_profiles[comboBoxLoad.SelectedIndex]}.xml"); 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; } Options.ProfileName = $"Options_{textBoxCreate.Text}.xml"; FiddlerOptions.Logger.Information("Creating profile: {profileName}", Options.ProfileName); FiddlerOptions.LoadProfile($"{_profiles[comboBoxBasedOn.SelectedIndex]}.xml"); Close(); }