//------------------------------------------------------------------------------------------------ //--------------------------------------기능 함수------------------------------------------------ //------------------------------------------------------------------------------------------------ private void SaveUnfav() { for (int i = 0; i < listBitmapImage.Count; i++) { if (listBitmapImage[i].IsDownloading) { MessageBox.Show("이미지를 로딩 중입니다.", "오류", MessageBoxButton.OK, MessageBoxImage.Warning); return; } } for (int i = 0; i < listBitmapImage.Count; i++) { FileInstence.SaveImage(listTweet[index].mediaEntities.media[i].media_url_https, listBitmapImage[i]); } //MessageBox.Show("모든 이미지를 저장했습니다.", "알림", MessageBoxButton.OK); PacketFavorites_Destroy parameter = new PacketFavorites_Destroy(); parameter.id = listTweet[index].id; string json = WebInstence.SyncRequest(parameter); if (json.Length > 50) { listTweet[index].favorited = false; MessageBox.Show("저장, 관심글 해제 성공", "알림", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void Save() { for (int i = 0; i < listBitmapImage.Count; i++) { if (listBitmapImage[i].IsDownloading) { MessageBox.Show("이미지를 로딩 중입니다.", "오류", MessageBoxButton.OK, MessageBoxImage.Warning); return; } } for (int i = 0; i < listBitmapImage.Count; i++) { FileInstence.SaveImage(listTweet[index].mediaEntities.media[i].media_url_https, listBitmapImage[i]); } MessageBox.Show("모든 이미지를 저장했습니다.", "알림", MessageBoxButton.OK, MessageBoxImage.Information); }
private void SaveImage() { if (isLoadOriginal == false) { LoadImage(true); deleSave = new DeleSaveImage(SaveImage); } else { if (CheckDownloadingImage(index)) { MessageBox.Show("이미지를 불러오는 중입니다.", "알림", MessageBoxButton.OK); return; } FileInstence.SaveImage(listMedia[index].media_url_https, listBitmapImage[index]); MessageBox.Show("이미지를 저장했습니다.", "알림", MessageBoxButton.OK); deleSave = null; } }
private void SaveImageAll() { if (isLoadOriginal == false) { LoadImage(true); deleSave = new DeleSaveImage(SaveImageAll); } else { if (CheckDownloadingImage()) { MessageBox.Show("이미지를 불러오는 중입니다.", "알림", MessageBoxButton.OK); return; } for (int i = 0; i < listMedia.Count; i++) { FileInstence.SaveImage(listMedia[i].media_url_https, listBitmapImage[i]); } MessageBox.Show("모든 이미지를 저장했습니다.", "알림", MessageBoxButton.OK); deleSave = null; } }