private void advancedProxiesButton_Click(object sender, EventArgs e) { if (!perksConfiguration.PerksEnabled) { if (!perksConfiguration.PerksEnabled) { System.Windows.Forms.MessageBox.Show(MiningEngine.AdvancedProxiesRequirePerksMessage, "Perks Required", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information); } using (PerksForm perksForm = new PerksForm(perksConfiguration)) { perksForm.ShowDialog(); } } else { using (ProxySettingsForm proxySettingsForm = new ProxySettingsForm(minerConfiguration)) { System.Windows.Forms.DialogResult dialogResult = proxySettingsForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { perksConfiguration.AdvancedProxying = true; perksConfiguration.SavePerksConfiguration(); LoadProxySettings(); } } } }