C# Class AdminTools.CLog

The visible control of the DPLog plugin
Inheritance: System.Windows.Forms.UserControl
Mostra file Open project: Silveryard/SmartHome

Public Methods

Method Description
AddMessage ( int channel, string message ) : void

Adds a new message to the log list

CLog ( ) : System

Creates a new instance

RefreshDisabledChannels ( ) : void

Refreshs the displayed list of currently disabled channels

RefreshEnabledChannels ( ) : void

Refreshs the displayed list of currently enabled channels

WriteCache ( ) : void

Writes all messages from the internal cache to the log list

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CLog_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

btnDisable_Click ( object sender, EventArgs e ) : void
btnEnable_Click ( object sender, EventArgs e ) : void

Method Details

AddMessage() public method

Adds a new message to the log list
public AddMessage ( int channel, string message ) : void
channel int The sending channel
message string The sended message
return void

CLog() public method

Creates a new instance
public CLog ( ) : System
return System

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

RefreshDisabledChannels() public method

Refreshs the displayed list of currently disabled channels
public RefreshDisabledChannels ( ) : void
return void

RefreshEnabledChannels() public method

Refreshs the displayed list of currently enabled channels
public RefreshEnabledChannels ( ) : void
return void

WriteCache() public method

Writes all messages from the internal cache to the log list
public WriteCache ( ) : void
return void