private void addCoinButton_Click(object sender, EventArgs e) { CoinChooseForm coinChooseForm = new CoinChooseForm(knownCoins); DialogResult dialogResult = coinChooseForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) AddCoinConfiguration(coinChooseForm.SelectedCoin); }
private void addCoinButton_Click(object sender, EventArgs e) { CoinChooseForm coinChooseForm = new CoinChooseForm(knownCoins); DialogResult dialogResult = coinChooseForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { AddCoinConfiguration(coinChooseForm.SelectedCoin); } }
private void copyCoinButton_Click(object sender, EventArgs e) { CoinChooseForm coinChooseForm = new CoinChooseForm(knownCoins); DialogResult dialogResult = coinChooseForm.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { PoolGroup destinationCoin = coinChooseForm.SelectedCoin; Engine.Data.Configuration.Coin sourceConfiguration = configurations[coinListBox.SelectedIndex]; MultiMiner.Engine.Data.Configuration.Coin destinationConfiguration = AddCoinConfiguration(destinationCoin); ObjectCopier.CopyObject(sourceConfiguration, destinationConfiguration, "CryptoCoin"); BindToCurrentConfiguration(); coinConfigurationBindingSource.ResetBindings(false); miningPoolBindingSource.ResetBindings(false); } }