public DownloadRequest(String searchQuery, String downloadPath, Boolean autoDownload, RequestImageType imageType = RequestImageType.Image) { SearchQuery = DerpiAPI.CheckSearchRequest(searchQuery) ? searchQuery : String.Empty; DownloadPath = PathUtils.IsValidPath(downloadPath, PathType.File) ? downloadPath : Globals.CurrentDownloadPath; AutoDownload = autoDownload; ImageType = imageType; }
public DownloadTaskControl(String search, String path, Boolean autoStartDownload, RequestImageType imageType = RequestImageType.Image) { InitializeComponent(); _searchQueryTextBox.Text = search; _downloadPathTextBox.Text = path; Log(new LogMessage(Globals.Localization.Created, MessageType.Action)); if (autoStartDownload && Globals.APIKey.IsValid) { OnStartDownloadButton_Click(null, EventArgs.Empty); } }
public DownloadRequest(String searchQuery, String downloadPath, RequestImageType imageType) : this(searchQuery, downloadPath, Globals.QueueAutoDownload.GetValue(), imageType) { }
public DownloadTaskControl(String search, String path, RequestImageType imageType) : this(search, path, Globals.QueueAutoDownload.GetValue(), imageType) { }