C# Class ACAT.Lib.Core.TalkWindowManagement.TalkWindowBase

Inheritance: System.Windows.Forms.Form, ITalkWindow
Show file Open project: brlima94/acat-localization

Protected Properties

Property Type Description
defaultDateFormat String
defaultFontSize float
defaultTimeFormat String
displayDateFormat String
displayTimeFormat String
enableDateTimeDisplay bool

Public Methods

Method Description
Center ( ) : void

Centers the talk window in the display

Clear ( ) : void

Clears the text

Copy ( ) : void

Copies text to clipboard

Cut ( ) : void

Cuts text to clipboard

OnPause ( ) : void

Pauses the talk window

OnPositionChanged ( ) : void

Invoked when the position of the talk window changes

OnResume ( ) : void

Resumes the talk window

Paste ( ) : void

Pastes text from clipboard into the talk window

SelectAll ( ) : void

Selects all the text

TalkWindowBase ( ) : System

Initializes a new instance of the class.

ZoomDefault ( ) : void

Restores default font size

ZoomIn ( ) : void

Increases the font size in the talk window by a step

ZoomOut ( ) : void

Decreases the font size in the talk window by a step

Protected Methods

Method Description
OnActivated ( EventArgs e ) : void

Talk window was actived. Make it the topmost window

OnFormClosing ( FormClosingEventArgs e ) : void

Invoked when the form is closing

OnShown ( EventArgs e ) : void

Called when the window is shown

displayDateTime ( String text ) : void

Override this to displays the date and time on the talk window

notifyFontChanged ( ) : void

Raises event that font has changed

notifyRequestClose ( ) : void

Raises event that the talk window wants to close

setColors ( ) : void

Sets the Theme/color of the talk window

setFont ( float size ) : bool

Changes the size of the font in the talk window

updateDateTime ( String dateFormat, string timeFormat ) : void

Formats and displays the current date/time in the status bar

Private Methods

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

Perform initialization

_timer_Elapsed ( object sender, System e ) : void

Time tick function. Update the time display on the status bar

startTimer ( ) : void

Starts the timer to update the time display

stopTimer ( ) : void

Stops the timer

textBox_KeyDown ( object sender, KeyEventArgs e ) : void

Handles shortcuts.

Method Details

Center() public method

Centers the talk window in the display
public Center ( ) : void
return void

Clear() public method

Clears the text
public Clear ( ) : void
return void

Copy() public method

Copies text to clipboard
public Copy ( ) : void
return void

Cut() public method

Cuts text to clipboard
public Cut ( ) : void
return void

OnActivated() protected method

Talk window was actived. Make it the topmost window
protected OnActivated ( EventArgs e ) : void
e EventArgs event arg
return void

OnFormClosing() protected method

Invoked when the form is closing
protected OnFormClosing ( FormClosingEventArgs e ) : void
e FormClosingEventArgs event arg
return void

OnPause() public method

Pauses the talk window
public OnPause ( ) : void
return void

OnPositionChanged() public method

Invoked when the position of the talk window changes
public OnPositionChanged ( ) : void
return void

OnResume() public method

Resumes the talk window
public OnResume ( ) : void
return void

OnShown() protected method

Called when the window is shown
protected OnShown ( EventArgs e ) : void
e EventArgs event arg
return void

Paste() public method

Pastes text from clipboard into the talk window
public Paste ( ) : void
return void

SelectAll() public method

Selects all the text
public SelectAll ( ) : void
return void

TalkWindowBase() public method

Initializes a new instance of the class.
public TalkWindowBase ( ) : System
return System

ZoomDefault() public method

Restores default font size
public ZoomDefault ( ) : void
return void

ZoomIn() public method

Increases the font size in the talk window by a step
public ZoomIn ( ) : void
return void

ZoomOut() public method

Decreases the font size in the talk window by a step
public ZoomOut ( ) : void
return void

displayDateTime() protected method

Override this to displays the date and time on the talk window
protected displayDateTime ( String text ) : void
text String
return void

notifyFontChanged() protected method

Raises event that font has changed
protected notifyFontChanged ( ) : void
return void

notifyRequestClose() protected method

Raises event that the talk window wants to close
protected notifyRequestClose ( ) : void
return void

setColors() protected method

Sets the Theme/color of the talk window
protected setColors ( ) : void
return void

setFont() protected method

Changes the size of the font in the talk window
protected setFont ( float size ) : bool
size float size of the font
return bool

updateDateTime() protected method

Formats and displays the current date/time in the status bar
protected updateDateTime ( String dateFormat, string timeFormat ) : void
dateFormat String
timeFormat string
return void

Property Details

defaultDateFormat protected property

Default date format to display in talk window status bar
protected String defaultDateFormat
return String

defaultFontSize protected property

Default font size of the text box
protected float defaultFontSize
return float

defaultTimeFormat protected property

Default time format to display in talk window status bar
protected String defaultTimeFormat
return String

displayDateFormat protected property

Date format to display in talk window status bar
protected String displayDateFormat
return String

displayTimeFormat protected property

Time format to display in talk window status bar
protected String displayTimeFormat
return String

enableDateTimeDisplay protected property

Should date/time be displayed?
protected bool enableDateTimeDisplay
return bool