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

Inheritance: System.Windows.Forms.Form, ITalkWindow
Afficher le fichier Open project: brlima94/acat-localization

Protected Properties

Свойство Type Description
defaultDateFormat String
defaultFontSize float
defaultTimeFormat String
displayDateFormat String
displayTimeFormat String
enableDateTimeDisplay bool

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

Centers the talk window in the display
public Center ( ) : void
Résultat void

Clear() public méthode

Clears the text
public Clear ( ) : void
Résultat void

Copy() public méthode

Copies text to clipboard
public Copy ( ) : void
Résultat void

Cut() public méthode

Cuts text to clipboard
public Cut ( ) : void
Résultat void

OnActivated() protected méthode

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

OnFormClosing() protected méthode

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

OnPause() public méthode

Pauses the talk window
public OnPause ( ) : void
Résultat void

OnPositionChanged() public méthode

Invoked when the position of the talk window changes
public OnPositionChanged ( ) : void
Résultat void

OnResume() public méthode

Resumes the talk window
public OnResume ( ) : void
Résultat void

OnShown() protected méthode

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

Paste() public méthode

Pastes text from clipboard into the talk window
public Paste ( ) : void
Résultat void

SelectAll() public méthode

Selects all the text
public SelectAll ( ) : void
Résultat void

TalkWindowBase() public méthode

Initializes a new instance of the class.
public TalkWindowBase ( ) : System
Résultat System

ZoomDefault() public méthode

Restores default font size
public ZoomDefault ( ) : void
Résultat void

ZoomIn() public méthode

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

ZoomOut() public méthode

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

displayDateTime() protected méthode

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

notifyFontChanged() protected méthode

Raises event that font has changed
protected notifyFontChanged ( ) : void
Résultat void

notifyRequestClose() protected méthode

Raises event that the talk window wants to close
protected notifyRequestClose ( ) : void
Résultat void

setColors() protected méthode

Sets the Theme/color of the talk window
protected setColors ( ) : void
Résultat void

setFont() protected méthode

Changes the size of the font in the talk window
protected setFont ( float size ) : bool
size float size of the font
Résultat bool

updateDateTime() protected méthode

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

Property Details

defaultDateFormat protected_oe property

Default date format to display in talk window status bar
protected String defaultDateFormat
Résultat String

defaultFontSize protected_oe property

Default font size of the text box
protected float defaultFontSize
Résultat float

defaultTimeFormat protected_oe property

Default time format to display in talk window status bar
protected String defaultTimeFormat
Résultat String

displayDateFormat protected_oe property

Date format to display in talk window status bar
protected String displayDateFormat
Résultat String

displayTimeFormat protected_oe property

Time format to display in talk window status bar
protected String displayTimeFormat
Résultat String

enableDateTimeDisplay protected_oe property

Should date/time be displayed?
protected bool enableDateTimeDisplay
Résultat bool