private void ConfigurePerksRemotely() { PerksConfiguration workingPerksConfiguration = new PerksConfiguration(); GetRemoteApplicationConfiguration(this.selectedRemoteInstance); ObjectCopier.CopyObject(this.remotePerksConfig, workingPerksConfiguration); PerksForm perksForm = new PerksForm(workingPerksConfiguration); perksForm.Text = String.Format("{0}: {1}", perksForm.Text, this.selectedRemoteInstance.MachineName); DialogResult dialogResult = perksForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { ObjectCopier.CopyObject(workingPerksConfiguration, this.remotePerksConfig); SetConfigurationRemotely(this.selectedRemoteInstance, null, null, null, this.remotePerksConfig); } }
private void ConfigurePerks() { PerksForm perksForm = new PerksForm(perksConfiguration); DialogResult dialogResult = perksForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { perksConfiguration.SavePerksConfiguration(); if (perksConfiguration.PerksEnabled && perksConfiguration.ShowExchangeRates) RefreshExchangeRates(); LoadListViewValuesFromCoinStats(); RefreshIncomeSummary(); AutoSizeListViewColumns(); } else perksConfiguration.LoadPerksConfiguration(pathConfiguration.SharedConfigPath); }
private void ConfigurePerksLocally() { PerksForm perksForm = new PerksForm(perksConfiguration); DialogResult dialogResult = perksForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { perksConfiguration.SavePerksConfiguration(); RefreshViewForConfigurationChanges(); } else perksConfiguration.LoadPerksConfiguration(pathConfiguration.SharedConfigPath); }