public void Check_Calib_Files() { string c = CalibrationFiles.ToString(); string d = ConfigFiles.ToString(); proc(string.Format("adb shell ls {0}", con.Calib())); Thread.Sleep(500); Regex rx = new Regex("config.ini"); if (string.IsNullOrEmpty(Output)) { return; } Match matchCon = rx.Match(Output); if (matchCon.Success) { if (!d.Contains(matchCon.Value)) { ConfigFiles.Add(matchCon.Value); } } Regex rxDebug = new Regex("debugConfig.ini"); Match matchConDebug = rxDebug.Match(Output); if (matchConDebug.Success) { if (!d.Contains(matchConDebug.Value)) { ConfigFiles.Add(matchConDebug.Value); } } foreach (string cal in con.Get_Cal_Files()) { Regex rx_ = new Regex(cal); Match match = rx_.Match(Output); if (match.Success) { if (!c.Contains(match.Value)) { CalibrationFiles.Add(match.Value); } } } }
public void Check_Config_Files_Etc() { string d = ConfigFiles.ToString(); proc(string.Format("adb shell ls {0}", con.Get_Etc_Iar_Path())); Thread.Sleep(500); Regex rx = new Regex("config.ini"); Match matchCon = rx.Match(Output); if (matchCon.Success) { if (!d.Contains(matchCon.Value)) { ConfigFiles.Add(string.Format(@"\etc\iar\{0}", matchCon.Value)); } } }