CPUMinerGUI.Form1.refreshInstanceList C# (CSharp) Method

refreshInstanceList() private method

private refreshInstanceList ( ) : void
return void
        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;
        }