C# 클래스 ACAT.Lib.Core.TalkWindowManagement.TalkWindowBase

상속: System.Windows.Forms.Form, ITalkWindow
파일 보기 프로젝트 열기: brlima94/acat-localization

보호된 프로퍼티들

프로퍼티 타입 설명
defaultDateFormat String
defaultFontSize float
defaultTimeFormat String
displayDateFormat String
displayTimeFormat String
enableDateTimeDisplay bool

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

Center() 공개 메소드

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

Clear() 공개 메소드

Clears the text
public Clear ( ) : void
리턴 void

Copy() 공개 메소드

Copies text to clipboard
public Copy ( ) : void
리턴 void

Cut() 공개 메소드

Cuts text to clipboard
public Cut ( ) : void
리턴 void

OnActivated() 보호된 메소드

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

OnFormClosing() 보호된 메소드

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

OnPause() 공개 메소드

Pauses the talk window
public OnPause ( ) : void
리턴 void

OnPositionChanged() 공개 메소드

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

OnResume() 공개 메소드

Resumes the talk window
public OnResume ( ) : void
리턴 void

OnShown() 보호된 메소드

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

Paste() 공개 메소드

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

SelectAll() 공개 메소드

Selects all the text
public SelectAll ( ) : void
리턴 void

TalkWindowBase() 공개 메소드

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

ZoomDefault() 공개 메소드

Restores default font size
public ZoomDefault ( ) : void
리턴 void

ZoomIn() 공개 메소드

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

ZoomOut() 공개 메소드

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

displayDateTime() 보호된 메소드

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

notifyFontChanged() 보호된 메소드

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

notifyRequestClose() 보호된 메소드

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

setColors() 보호된 메소드

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

setFont() 보호된 메소드

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

updateDateTime() 보호된 메소드

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

프로퍼티 상세

defaultDateFormat 보호되어 있는 프로퍼티

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

defaultFontSize 보호되어 있는 프로퍼티

Default font size of the text box
protected float defaultFontSize
리턴 float

defaultTimeFormat 보호되어 있는 프로퍼티

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

displayDateFormat 보호되어 있는 프로퍼티

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

displayTimeFormat 보호되어 있는 프로퍼티

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

enableDateTimeDisplay 보호되어 있는 프로퍼티

Should date/time be displayed?
protected bool enableDateTimeDisplay
리턴 bool