private void btnRun_Click(object sender, EventArgs e) { ResetInfomation(); SystemFolder.ClearAll(); if (isReady()) { DisableBtn(); isJava = cbxLanguage.SelectedIndex == 0 ? true : false; WriteToFileCode(GetRawSourceCode()); backgroundWorker.RunWorkerAsync(); } }