private static SdCardMessageName CardNameFactory(int card, int track) { var download = new SdCardMessageName(card, track); CommunicationViewModel.AddData(download); return download; }
/// <summary> /// esc sometimes gives erroneously wrong response. If name contains 16khz, redownload a few times until succes. /// </summary> /// <param name="download"></param> /// <returns>true if name is not 16khz</returns> private static bool CheckName(SdCardMessageName download) { if (!download.TrackName.ToLower().Contains("16khz")) return true; Debug.WriteLine("Warning: Track {0} contains 16khz! Re-downloading..", download.TrackNumber); return false; }