C# Class WhatsappClient.Form_Login

The whatsapp login form, select an account from the list or create one here.
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: sambulosenda/whatsapp-desktop-client

Public Properties

Property Type Description
Database SQLiteDatabase

Public Methods

Method Description
Form_Login ( ) : System

Class Constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Button_AddAccount_Click ( object sender, EventArgs e ) : void

Event: 'Add account' button has been clicked, resize form

Button_AddThisAccount_Click ( object sender, EventArgs e ) : void

Event: The 'Add this account' button has been clicked.

Button_Login_Click ( object sender, EventArgs e ) : void

Event: The login button has been clicked

CollapseForm ( ) : void

Collapses the size of the form so the 'Add account' groupbox is no longer visible.

ComboBox_DeviceOS_SelectedIndexChanged ( object sender, EventArgs e ) : void

Event: The selected item in de DeviceOS combo box changed

ExpandForm ( ) : void

Expands the size of the form so the 'Add account' groupbox is visible.

Form_Login_Load ( object sender, EventArgs e ) : void

Event: Called when the form has loaded.

InitializeComponent ( ) : void

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

SetControlsEnabled ( bool trueFalse ) : void

Sets the Enabled property of all controls on the form.

login ( ) : void

Handles logging in, supposed to run in a seperated thread

updateAccounts ( ) : void

Reloads all accounts from the database

verifyAccount ( ) : void

Verifies the new account that is about to be added, this method is supposed to run in a seperated thread.

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

Form_Login() public method

Class Constructor
public Form_Login ( ) : System
return System

Property Details

Database public_oe property

An instance of the SQLiteDatabase class, represents a connection to a SQL Lite database.
public SQLiteDatabase Database
return SQLiteDatabase