C# Class DanbooruDownloader3.FormMain

UI Helper
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: Nandaka/DanbooruDownloader

Public Methods

Method Description
CheckDownloadGrid ( ) : bool

Check if dgvDownload is not empty.

CheckListGrid ( ) : bool

Check if dgvList is not empty.

GetQueryUrl ( ) : string

Generate searchParam url from main tab.

GetSearchParams ( ) : DanbooruSearchParam

Get search parameter from Main Tab and Option Panels

GetSearchParamsFromJob ( DanbooruBatchJob job, int currPage ) : DanbooruSearchParam

Get Search Param from Batch Job

ShowMessage ( string title, string text ) : void

Show message box or baloon message (if minimized to systray)

Private Methods

Method Description
CheckProxyLoginInput ( ) : void

Enable/disable txtProxyUsername and password

Donate ( ) : void

Please donate some money :)

EnableControls ( bool enabled ) : void

Enable/Disable Main group box

EnableDownloadControls ( bool enabled ) : void

Enable/Disable Download tab buttons

FlashWindow ( IntPtr hwnd, bool bInvert ) : bool
SetProxy ( bool useProxy, string proxyAddress, int port, string username = null, string password = null ) : void

Setting up global proxy for webclient.

SetTagColors ( ) : void

Set color for tags.

ToggleTagsColor ( ) : void

Enable/Disable colored tags.

UpdateLog ( string source, string message, Exception ex = null ) : void

Update Log text box.

UpdateStatus ( ) : void

Update status label with the searchParam url

UpdateStatus2 ( string message, bool isCompleted = false ) : void
backgroundWorker1_DoWork ( object sender, DoWorkEventArgs e ) : void
backgroundWorker1_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
clientFile_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
clientFile_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void
clientList_DownloadDataCompleted ( object sender, DownloadDataCompletedEventArgs e ) : void
clientList_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
clientList_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void
clientThumb_DownloadDataCompleted ( object sender, DownloadDataCompletedEventArgs e ) : void
clientThumb_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Method Details

CheckDownloadGrid() public method

Check if dgvDownload is not empty.
public CheckDownloadGrid ( ) : bool
return bool

CheckListGrid() public method

Check if dgvList is not empty.
public CheckListGrid ( ) : bool
return bool

GetQueryUrl() public method

Generate searchParam url from main tab.
public GetQueryUrl ( ) : string
return string

GetSearchParams() public method

Get search parameter from Main Tab and Option Panels
public GetSearchParams ( ) : DanbooruSearchParam
return DanbooruSearchParam

GetSearchParamsFromJob() public method

Get Search Param from Batch Job
public GetSearchParamsFromJob ( DanbooruBatchJob job, int currPage ) : DanbooruSearchParam
job DanbooruBatchJob
currPage int
return DanbooruSearchParam

ShowMessage() public method

Show message box or baloon message (if minimized to systray)
public ShowMessage ( string title, string text ) : void
title string
text string
return void