private void buttonCDUDownloadResults_Click_1(object sender, EventArgs e) { CDU get_cdu_results = new CDU(); MessageBox.Show("this operation will take approximately 1 minute"); get_cdu_results.CDU_Get_data(); int i=0; while (get_cdu_results.get_all_messages() != true) { i++; if (i > 200000) break; } get_cdu_results.CDU_Write_File("CM0_" + comboBoxChooseCDUScript.Text + ".txt", 0); //get_cdu_results.CDU_Write_File("CM1_" + comboBoxChooseCDUScript.Text + ".txt", 1); MessageBox.Show("Finish Download CDU Samples"); }
private void buttonCDURunScript_Click_1(object sender, EventArgs e) { string Script_Name = comboBoxChooseCDUScript.Text.ToString() + ".txt"; string path = CDU.folderRoot + Script_Name; CDU config_cdu = new CDU(); if (File.Exists(path)) { config_cdu.CDU_configure(path); } else { Console.WriteLine("CDU file {0} not located in {1}", Script_Name, CDU.folderRoot); } }