private void startButton_Click(object sender, EventArgs e)
        {
            if (waitingForLog) return;

            string command = "-o " + curItem.address + " -u " + curItem.user + " -p " + curItem.password +
                             (lowCpuCheck.Checked ? " -lowcpu " + lowCPUText.Text : " -t " + threadsText.Text);

            Process p = new Process();
            p.StartInfo.FileName = win32Check.Checked ? "NsCpuCNMiner32.exe" : "NsCpuCNMiner64.exe";
            p.StartInfo.Arguments = command;
            p.StartInfo.UseShellExecute = false;

            p.Start();

            waitingForLog = true;

            waitingMiner = new Miner(p.Id, threadsText.Text, lowCpuCheck.Checked, curItem, p, "log");
        }
        private void instancesList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (instancesList.SelectedIndex == -1) return;

            showButton.Enabled = true;
            hideButton.Enabled = true;
            stopButton.Enabled = true;

            string selItem = instancesList.SelectedItem as string;
            int pid = int.Parse(selItem.Split(']')[0].Substring(1));
            curMiner = miners.Find(x => x.pid == pid);

            priorityDropdown.Enabled = true;
            priorityDropdown.SelectedIndex = curMiner.priority;
        }