private void refreshInstanceList()
{
instancesList.Items.Clear();
foreach (Miner miner in miners) {
instancesList.Items.Add("[" + miner.pid + "]" +
" {" + miner.hashrate + "} " +
"[" + (miner.lowCpu ? "low" : miner.threads) + "] " +
(miner.pool.description != String.Empty ? miner.pool.description : miner.pool.address));
}
showButton.Enabled = false;
hideButton.Enabled = false;
stopButton.Enabled = false;
priorityDropdown.Enabled = false;
priorityDropdown.SelectedIndex = -1;
hashrateTimer.Enabled = miners.Count > 0;
}