public void ThreadFuncDownlaod(object data) { if (Progress.IsCancle) { return; } //Prepare Errlabel = Prepare(); if (Errlabel.IsNotBlank()) { Progress.Errlabel = Errlabel; Progress.IsErr = true; return; } if (sType == "Track") { DownloadTrack(); } if (sType == "Video") { DownloadVideo(); } }
/// <summary> /// Search Func /// </summary> public void Search() { Errlabel = ""; if (SearchStr.IsBlank()) { Errlabel = "Search String is Err!"; } if (SearchTread != null) { Errlabel = "Somethig is in Searching!"; } if (Errlabel.IsNotBlank()) { ShowErrlabel = true; return; } SearchTread = ThreadHelper.Start(ThreadFuncSearch); ShowWaitView(ThreadSearchClose); }