C# Class SteamDesktopAuth.Form1

Show file Open project: Ezzpify/SteamAuthenticator

Public Methods

Method Description
Form1 ( ) : System

Constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DoPopup ( Config CC ) : void

Shows a popup form at bottom right side of screen

Form1_Load ( object sender, EventArgs e ) : void

Form load event

GetAccountFromMenuItem ( object sender ) : SteamGuardAccount

Gets an account from the global list from a sub-menu item from notifyMenu

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsLoading ( bool b ) : void

Shows/Hides a loading animation at the bottom of the screen

LoadConfirmations ( SteamGuardAccount account ) : Confirmation[]

Loads the confirmations pending for the account Will refresh cookies if needed

ReleaseCapture ( ) : bool
SendMessage ( IntPtr hWnd, int Msg, int wParam, int lParam ) : int
SetProgressBarColor ( ProgressBar pBar, int state ) : void

Changes the color of a progress bar

accountListBox_MouseDown ( object sender, MouseEventArgs e ) : void

Listbox items can now be selected by pressing any mouse button

accountListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Changes the current account depending on which is selected in the listbox

accountMenu_Opening ( object sender, CancelEventArgs e ) : void

Disable menu opening if no item is selected

authTimeRemainingTimer_Tick ( object sender, EventArgs e ) : void

Calculates the time remaining of the Two-Way auth code

confirmTimer_Tick ( object sender, EventArgs e ) : void

Searches for new trade confirmations

confirmationButton_Click ( object sender, EventArgs e ) : void

Displays the Confirmation form

contentPanel_MouseDown ( object sender, MouseEventArgs e ) : void

Allow movement of form

controlPanel_MouseDown ( object sender, MouseEventArgs e ) : void

Allow movement of form

exitButton_Click ( object sender, EventArgs e ) : void

Exit button to exit the application

githubLink_Click ( object sender, EventArgs e ) : void

Launches my GitHub profile in default browser

headerPanel_MouseDown ( object sender, MouseEventArgs e ) : void

Allow movement of form

loadAccountInfo ( ) : void

Loads info about the current account for Two-Way auth code

loadAccounts ( ) : void

Loads all account from file

loginButton_Click ( object sender, EventArgs e ) : void

Login button

menuAcceptTrades_Click ( object sender, EventArgs e ) : void

Accepts all pending trade for the account from clicking on the submenu item for the account

menuExit_Click ( object sender, EventArgs e ) : void

Exit button for the notify menu

menuGetCode_Click ( object sender, EventArgs e ) : void

Gets the auth code from an account by clicking on the submenu item for the account

miniButton_Click ( object sender, EventArgs e ) : void

Minimize button to minimize the form

notifyIcon_MouseClick ( object sender, MouseEventArgs e ) : void

Notifyicon for main form This will show the main form

notloadedBtn_Click ( object sender, EventArgs e ) : void

Button that shows the list of unloaded accounts

popupFormClear_Tick ( object sender, EventArgs e ) : void

Checks the responses of the popup forms

removePassword_Click ( object sender, EventArgs e ) : void

Remove password from an account if there's one set

settingsBtn_Click ( object sender, EventArgs e ) : void

Shows the settings form

unlinkAuthenticator_Click ( object sender, EventArgs e ) : void

Unlink selected account

updateChecker_DoWork ( object sender, DoWorkEventArgs e ) : void

Runs the update check via GitHub.cs

updateChecker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Update check is done, so stop the loading animation

versionLabel_Click ( object sender, EventArgs e ) : void

Version label takes user to github release page

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

Constructor
public Form1 ( ) : System
return System