C# Class CloudFlareDDNS.frmMain

Main form - all main functionality
Inheritance: Form
Show file Open project: DaniGTA/CloudFlare-DDNS-Updater

Public Methods

Method Description
frmMain ( ) : System

Form entry point

Private Methods

Method Description
FrmMain_DisableClick ( object sender, EventArgs e ) : void
FrmMain_EnableClick ( object sender, EventArgs e ) : void
FrmMain_ForceUpdateEntry ( object sender, EventArgs e ) : void
ListViewContextMenu_Opened ( object sender, EventArgs e ) : void
ReleaseCapture ( ) : bool

Make borderless window move able

SendMessage ( IntPtr hWnd, int Msg, int wParam, int lParam ) : int

Make borderless window move able

aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Show the about form

addLogEntry ( ListViewItem entry ) : void

Called from another thread, adds a log entry to the list control

autoUpdateTimer_Tick ( object sender, EventArgs e ) : void

Auto update every x minutes, creates a new timerUpdateThread() thread NOTE: This already runs in its own thread!

button1_Click ( object sender, EventArgs e ) : void
button_minimize_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Close the application

fetchDataToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Get current external address and CloudFlare records

frmMain_Closing ( object sender, FormClosingEventArgs e ) : void

Clean up the tray icon when closing

frmMain_Load ( object sender, EventArgs e ) : void
frmMain_MouseDown ( object sender, MouseEventArgs e ) : void
frmMain_Resize ( object sender, EventArgs e ) : void

Minimise to the tray instead of the taskbar

frmMain_Shown ( object sender, EventArgs e ) : void
listHostsCheck ( object sender, ItemCheckEventArgs e ) : void

A host in the list contol has been checked or unchecked Update the config to reflect the change

listViewLog_DrawColumnHeader ( object sender, DrawListViewColumnHeaderEventArgs e ) : void
listViewRecords_DrawColumnHeader ( object sender, DrawListViewColumnHeaderEventArgs e ) : void
listViewRecords_MouseDown ( object sender, MouseEventArgs e ) : void
logUpdateTimer_Tick ( object sender, EventArgs e ) : void

Tick every 1000ms to add new log entries to the listview control NOTE: This already runs in its own thread!

minimiseToTrayToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Minimise the appplication to the task tray

notifyIcon1_MouseDoubleClick ( object sender, MouseEventArgs e ) : void

Restore when double clicking the tray icon

settingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Open the settings box

start_ForceUpdateEntry ( ) : void
start_fetchThread ( ) : void
threadFetchOnly ( ) : void

Thread to fetch records, nothing else

threadFetchUpdate ( ) : void

Thread to run updates every x minutes

updateAddress ( string IPV4, string IPV6 ) : void

Called from another thread, update the textbox control with the new external address

updateHostsList ( List resultList ) : void

Called from another thread Populate the list hosts control with the new returned hosts

updateRecordsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Update the selected records

Method Details

frmMain() public method

Form entry point
public frmMain ( ) : System
return System