IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Forms.TimerControlWorking Class Reference
+ Inheritance diagram for IG.Forms.TimerControlWorking:
+ Collaboration diagram for IG.Forms.TimerControlWorking:

Public Member Functions

 TimerControlWorking ()
 Constructs a timer control. More...
 
void LoadDefaultSounds ()
 
virtual void PlaySoundStart ()
 Plays the sound associated with clicking the start button. More...
 
virtual void PlaySoundStop ()
 Plays the sound associated with clicking the stop button. More...
 
virtual void PlaySoundReset ()
 Plays the sound associated with clicking the reset button. More...
 
virtual void PlaySoundSecondTick ()
 Plays the sound associated with a second tick. More...
 
virtual void PlaySoundMinuteBell ()
 Plays the sound associated with the whole minute switch. More...
 
virtual void PlaySoundHourBell ()
 Plays the sound associated with the whole minute switch. More...
 
virtual void PlaySoundAlarmCountdown ()
 Plays the sound associated with a countdown end. More...
 
void UpdateDisplayFonts ()
 Updates fonts that are dependent on the main display font, according to this font. More...
 
void SetDisplayFontSize (double sizeInPoints)
 Changes size of the display font. More...
 
void SetDisplayFontSize (decimal sizeInPointsDecimal)
 Changes size of the display font. More...
 
virtual void StopwatchStartOrStop ()
 Starts (if it is not running) or stops (if it is running) the stopwatch. More...
 
virtual void StopwatchStart ()
 Starts the stopwatch. More...
 
virtual void StopwatchStop ()
 Stops the stopwatch timer. More...
 
virtual void CountdownStartOrStop ()
 Starts (if it is not running) or stops (if it is running) the countdown. More...
 
virtual void CountdownStart ()
 Starts the countdown timer. More...
 
virtual void CountdownStop ()
 Stops the countdown timer. More...
 

Static Public Attributes

static int DefaultMaxNumTimerErrorReports = 10
 Default maximal number of times a report about timer tick exception is launched. More...
 

Protected Member Functions

virtual void UpdateDisplays ()
 Updates timer's displays. More...
 
virtual void UpdateSwDisplay ()
 Refreshes stopwatch's display according to elapsed time. More...
 
virtual void UpdateSwControls ()
 Updates stopwatch controls according to internal properties. More...
 
virtual void UpdateDisplayAppearance ()
 Updates fonts on the timer's displays. More...
 
virtual void UpdateSwButtonsAppearance ()
 Updates appearance of the stopwatch buttons. More...
 
virtual void OnStopwatchTimerTick ()
 Called when the timer event fires (very often, in the range of milliseconds). Raises the StopwatchTimerTick event and updates the display. More...
 
virtual void StopwatchResetIt ()
 Resets the stopwatch. More...
 
virtual void OnStopwatchSecondTick ()
 Called when the stopwatch seconds count reaches a whole value (seconds tick). Raises the StopwatchSecondTick event and eventually plays the appropriate "second tick" sound (if not IsSilent and if IsSwSoundSecondTick). More...
 
virtual void OnStopwatchMinuteBell ()
 Called when the stopwatch minutes count reaches a whole value (minutes signal). Raises the StopwatchMinuteBell event and eventually plays the appropriate "minutes bell" sound (if not IsSilent and if IsSwSoundMinuteBell). More...
 
virtual void OnStopwatchHourBell ()
 Called when the stopwatch hours count reaches a whole value (hour switch signal). Raises the StopwatchHourBell event and eventually plays the appropriate "hours bell" sound (if not IsSilent and if IsSwSoundHourBell). More...
 
virtual void UpdateCdInitialTimeSpan ()
 Updates initial TimeSpan of the countdown in such a way that it corresponds to its initial hours, minutes, seconds, and miilliseconds. More...
 
virtual void UpdateCdInitialTime ()
 Updates initial hours, minutes, seconds, and milliseconds of the countdown in such a way that they correspond to its intial TimeSpan. More...
 
virtual void UpdateCdDisplay ()
 Refreshes countdown's display according to elapsed time. More...
 
virtual void UpdateCdControls ()
 Updates countdown controls according to internal properties. More...
 
virtual void UpdateCdButtonsAppearance ()
 Updates appearance of the stopwatch buttons. More...
 
virtual void UpdateWatchDisplay ()
 Refreshes watch' display according to the current time. More...
 
virtual void OnCountdownTimerTick ()
 Called when the timer event fires (very often, in the range of milliseconds). Raises the CountdownTimerTick event and updates the display. More...
 
virtual void CountdownResetIt ()
 Resets the countdown. More...
 
virtual void OnCountdownFinished ()
 Called when the countdown reaches 0 and stops counting down. Raises the CountdownFinished event and eventually plays the appropriate alarm (if not IsSilent and if IsCdSoundAlarm). More...
 
virtual void OnCountdownSecondTick ()
 Called when the countdown seconds count reaches a whole value (seconds tick). Raises the CountdownSecondTick event and eventually plays the appropriate "second tick" sound (if not IsSilent and if IsCdSoundSecondTick). More...
 
virtual void OnCountdownMinuteBell ()
 Called when the countdown minutes count reaches a whole value (minutes signal). Raises the CountdownMinuteBell event and eventually plays the appropriate "minutes bell" sound (if not IsSilent and if IsCdSoundMinuteBell). More...
 
virtual void OnCountdownHourBell ()
 Called when the countdown hours count reaches a whole value (hours signal). Raises the CountdownHourBell event and eventually plays the appropriate "hours bell" sound (if not IsSilent and if IsCdSoundHourBell). More...
 
override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Protected Attributes

SoundPlayer _soundPlayerStart = null
 
SoundPlayer _soundPlayerStop = null
 
SoundPlayer _soundPlayerReset = null
 
SoundPlayer _soundPlayerSecondTick = null
 
SoundPlayer _soundPlayerMinuteBell = null
 
SoundPlayer _soundPlayerHourBell = null
 
SoundPlayer _soundPlayerAlarmCountdown = null
 
Font _displayFont = null
 
TimeSpan _swPreviousSpan
 
TimeSpan _swCurrentSpan
 
TimeSpan _cdPreviousRemainingSpan
 
TimeSpan _cdCurrentRemainingSpan
 
bool _isClockRunnng = false
 

Properties

static int DefaultOutputLevel [get, set]
 Default output level for this class of objects. More...
 
int OutputLevel [get, set]
 Current output level for the current object. More...
 
int MaxPlayErrors [get, set]
 
int NumPlayErrors [get, set]
 
virtual SoundPlayer SoundPlayerStart [get]
 Gets the sound player for playing sound when a start button is pressed. Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerStop [get]
 Gets the sound player for playing sound when the stop button is pressed. Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerReset [get]
 Gets the sound player for playing sound when the resett button is pressed. Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerSecondTick [get]
 Gets the sound player for playing sound when another second passes (a second tick). Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerMinuteBell [get]
 Gets the sound player for playing sound when another minute passes (a minute bell). Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerHourBell [get]
 Gets the sound player for playing sound when another hour passes (a hour bell). Player is pre-laded with the appropriate sound. More...
 
virtual SoundPlayer SoundPlayerAlarmCountdown [get]
 Gets the sound player for playing alarm when countdown finishes. Player is pre-laded with the appropriate sound. More...
 
virtual bool IsSwSoundSecondTick [get, set]
 Whether a tick sound is switched on (launched every second when the stopwatch is running). More...
 
virtual bool IsSwSoundMinuteBell [get, set]
 Whether a minutes bell sound is switched on (launched every minute when the stopwatch is running). More...
 
virtual bool IsSwSoundHourBell [get, set]
 Whether a hour bell sound is switched on (launched every hour when the stopwatch is running). More...
 
virtual bool IsSwSoundButtons [get, set]
 Whether the stopwatch's button sound is switched on (launched every time a stopwatch button with some effect is pressed, or the same effect is achieved programatically). More...
 
virtual bool IsCdSoundSecondTick [get, set]
 Whether the countdown's tick sound is switched on (a sound launched every second when the countdown is running). More...
 
virtual bool IsCdSoundMinuteBell [get, set]
 Whether the countdown's minute bell sound is switched on (a sound launched every minute when the countdown is running). More...
 
virtual bool IsCdSoundHourBell [get, set]
 Whether the countdown's hpur bell sound is switched on (a sound launched every hour when the countdown is running). More...
 
bool IsRunning [get]
 Indicates whether the timer is currently running or not. More...
 
int TimerIntervalMs [get, set]
 Timer interval, in Milliseconds. More...
 
virtual bool IsSilent [get, set]
 Flag specifying whether the complete timer is in a silent mode. More...
 
StopWatch1 SwStopwatch [get]
 Stopwatch used to measure elapsed time for the displayed stopwatch. More...
 
bool IsStopwatchRunning [get]
 Indicates whether the countdown timer is running or not. More...
 
TimeSpan StopwatchTotalTimeSpan [get]
 Gets the current time span measured by the stopwatch. More...
 
double StopWatchTotalTime [get]
 Gets the current time span measured by the stopwatch. More...
 
Font FontMilli [get, set]
 Font used in timer's displays for milliseconds. More...
 
Font DisplayFont [get, set]
 Font used in timerr's displays. More...
 
double MilliSecondsSizeRatio [get, set]
 Ratio between the size of millisecond digits and other digits on the stopwatch. More...
 
double MinDispayFontSizeInPoints [get, protected set]
 Minimal size of display font, in points. More...
 
bool SwShowMilliSeconds [get, set]
 Whether milliseconds shoulld be shown. More...
 
bool SwShowHoursWhenZero [get, set]
 
Color ColorBgWarning [get, set]
 
Color ColorBgOk [get, set]
 
Color ColorInvisible [get]
 
Color DisplayBg [get, protected set]
 Display background color. More...
 
Color DisplayFg [get, protected set]
 Display foreground color. More...
 
string SwStartText [get, set]
 Text that is written on the stopwatch start button. More...
 
string SwStopText [get, set]
 
string SwResetText [get, protected set]
 
Color SwStartColor [get, protected set]
 Background color for stopwatch start button. More...
 
Color SwStopColor [get, protected set]
 
Color SwResetColor [get, protected set]
 Background color for stopwatch reset button. More...
 
Color ControlsFgClosed [get, protected set]
 Foreground color for controls opener when controls are closed. More...
 
Color ControlsFgOpen [get, protected set]
 Foreground color for controls opener when controls are opened. More...
 
string ControlsClosedText [get, protected set]
 Tect for controls opener when controls are closed. More...
 
string ControlsOpenText [get, protected set]
 Tect for controls opener when controls are opened. More...
 
bool IsSwControlsOpened [get, protected set]
 Wheether controls are opened or not. More...
 
int MaxTimerErrorReports [get, set]
 Macimal number of times a report on exception thrown within the timer tick event can be launched. More...
 
int NumTimerErrorReports [get, set]
 Number of times a report on exception thrown within the timer tick event has already been launched. More...
 
StopWatch1 CdStopwatch [get]
 Stopwatch used to measure elapsed time for the displayed cowntdown. More...
 
bool IsCountdownRunning [get]
 Indicates whether the countdown timer is running or not. More...
 
TimeSpan CountdownTotalTimeSpan [get]
 Gets the current total time span measured by the countdown's stopwatch. More...
 
double CountdownTotalTime [get]
 Gets the current time span measured by the countdown's stopwatch. More...
 
TimeSpan CountdownRemainingTimeSpan [get]
 Gets Countdown's remaining time span. More...
 
double CountdownRemainingTime [get]
 Returns Countdown's remaining time in seconds. More...
 
virtual int CdInitialHours [get, set]
 Number of hours initially set in countdown. More...
 
virtual int CdInitialMinutes [get, set]
 Number of minutes initially set in countdown. More...
 
virtual int CdInitialSeconds [get, set]
 Number of seconds initially set in countdown. More...
 
virtual int CdInitialMilliseconds [get, set]
 Number of milliseconds initially set in countdown. More...
 
virtual TimeSpan CdInitialTimeSpan [get, set]
 Initial time span set in countdown. More...
 
bool CdShowMilliSeconds [get, set]
 Whether milliseconds shoulld be shown on countdown. More...
 
bool CdShowHoursWhenZero [get, set]
 
virtual bool IsCdSoundButtons [get, set]
 Whether the countdown's button sound is switched on (a sound launched every time a countdown button with some effectt is pressed, or the same effect is achieved programatically). More...
 
virtual bool IsCdSoundAlarm [get, set]
 Whether a countdown's alarm sound is switched on (launched when the countdown is finished, i.e. the countdown reachhes zero). More...
 
string CdStartText [get, set]
 Text that is written on the stopwatch start button. More...
 
string CdStopText [get, set]
 
string CdResetText [get, protected set]
 
Color CdStartColor [get, protected set]
 Background color for stopwatch start button. More...
 
Color CdStopColor [get, protected set]
 
Color CdResetColor [get, protected set]
 
bool IsCdControlsOpened [get, protected set]
 Wheether controls are opened or not. More...
 
bool IsClockRunning [get, set]
 

Events

EventHandler StopwatchTimerTick
 Event that is fired on each stopwatch's timer tick (very often, in the range of milliseconds). More...
 
EventHandler StopwatchStarted
 Event that is fired when the stopwatch starts. More...
 
EventHandler StopwatchStopped
 Event that is fired when the stopwatch stops. More...
 
EventHandler StopwatchReset
 Event that is raised when the counter is reset. More...
 
EventHandler StopwatchSecondTick
 Event that is fired when second count changes to a whole value (seconds tick). More...
 
EventHandler StopwatchMinuteBell
 Event that is fired when minutes count changes to a whole value (minutes signal). More...
 
EventHandler StopwatchHourBell
 Event that is fired when minutes count changes to a whole value (minute switch signal). More...
 
EventHandler CountdownTimerTick
 Event that is fired on each countdown's timer tick (very often, in the range of milliseconds). More...
 
EventHandler CountdownStarted
 Event that is fired when the countdown starts. More...
 
EventHandler CountdownStopped
 Event that is fired when the countdown stops. More...
 
EventHandler CountdownReset
 Event that is raised when the counter is reset. More...
 
EventHandler CountdownFinished
 Event that is fired when the countdown reaches 0. More...
 
EventHandler CountdownSecondTick
 Event that is fired when second count changes to a whole value (seconds tick). More...
 
EventHandler CountdownMinuteBell
 Event that is fired when minutes count changes to a whole value (minutes signal). More...
 
EventHandler CountdownHourBell
 Event that is fired when gours count changes to a whole value (hours signal). More...
 

Private Member Functions

void ReportSoundError (string soundDescriptor, Exception ex)
 
void timer1_Tick (object sender, EventArgs e)
 Timer event handlesr, executed on every tick of thr timer. More...
 
void StopWatchControl_Load (object sender, EventArgs e)
 
void btnSwControls_Click (object sender, EventArgs e)
 Toggles opening/closing stopwatch's controls panel. More...
 
void chkSwSilent_CheckedChanged (object sender, EventArgs e)
 Toggles silent mode. More...
 
void btnSwStartStop_Click (object sender, EventArgs e)
 Start / stop button pressed. More...
 
void btnSwReset_Click (object sender, EventArgs e)
 
void flowPanelOuter_SizeChanged (object sender, EventArgs e)
 Fired on size change of the outer panel of the control. Currently not used, but this event can be used fo triger the appropriate actions (e.g. adjust the size) of containing controls. Now containing controls are adjusted automatically (by appropriate property setting). More...
 
void fontSelectorSw_FontSelected (object sender, FontEventArgs args)
 Trigered by font selector control when a new font was selected in it. More...
 
void fontSelector_Load (object sender, EventArgs e)
 Not used. More...
 
void fontSelector_FontSelected (object sender, FontEventArgs args)
 When font is selected by the font selector, it sets the display font in this control to the selected font. More...
 
void numFontSize_ValueChanged (object sender, EventArgs e)
 
void numSwFontSize_Enter (object sender, EventArgs e)
 Selects the contents for easy changing by typing. More...
 
void numSwFontSize_Click (object sender, EventArgs e)
 Selects the contents for easy changing by typing. More...
 
void chkSwDisplayMilliseconds_CheckedChanged (object sender, EventArgs e)
 
void chkSwDisplayHours_CheckedChanged (object sender, EventArgs e)
 
void btnCdControls_Click (object sender, EventArgs e)
 Toggles between open / closed control panel for the countdown. More...
 
void chkCdSilent_CheckedChanged (object sender, EventArgs e)
 Toggles silent mode. More...
 
void fontSelectorCd_FontSelected (object sender, FontEventArgs args)
 
void btnCdStartStop_Click (object sender, EventArgs e)
 
void btnCdReset_Click (object sender, EventArgs e)
 
void chkCdDisplayMilliseconds_CheckedChanged (object sender, EventArgs e)
 
void chkCdDisplayHours_CheckedChanged (object sender, EventArgs e)
 
void numCdFontSize_ValueChanged (object sender, EventArgs e)
 
void numCdFontSize_Enter (object sender, EventArgs e)
 
void numCdFontSize_Click (object sender, EventArgs e)
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

int _outputLevel = DefaultOutputLevel
 
int _maxPlayErrors = 5
 
bool _isSwSoundSecondTick = true
 
bool _isSwSoundMinuteBell = true
 
bool _isSwSoundHourBell = true
 
bool _isSwSoundButtonPressed = true
 
bool _isCdSoundSecondTick = true
 
bool _isCdSoundMinuteBell = true
 
bool _isCdSoundHourBell = true
 
int _timerIntervalMs = 5
 
bool _isSilent = true
 
StopWatch1 _swStopwatch
 
Font _fontMilli = null
 
double _millisecondsSizeRatio = 0.5
 
double _minDispayFontSizeInPoints = 2.0
 
bool _swShowMilliSeconds = true
 
bool _swShowHoursWhenZero = true
 Whether hours shoulld be shown when they are zero. More...
 
Color _colorBgWarning = Color.Red
 
Color _colorBgOk = Color.Green
 
Color _displayBg = Color.PaleGoldenrod
 
Color _displayFg = Color.SeaGreen
 
string _swStartText = "Start"
 
string _swStopText = "Pause"
 
string _swResetText = "Reset"
 
Color _swStartColor = Color.Green
 
Color _swStopColor = Color.LightSalmon
 Background color for stopwatch stop button. More...
 
Color _swResetColor = Color.LightSalmon
 
Color _controlsFgClosed = Color.Black
 
Color _controlsFgOpen = Color.Blue
 
string _controlsClosedText = "â–¼"
 
string _ontrolsOpenText = "â–²"
 
bool _swControlsOpen = false
 
int _maxTimerErrorReports = DefaultMaxNumTimerErrorReports
 
int _numTimerErrorReports = 0
 
StopWatch1 _cdStopwatch
 
int _cdInitialHours = 0
 
int _cdInitialMinutes = 0
 
int _cdInitialSecods = 0
 
int _cdInitialMs = 0
 
TimeSpan _cdInitialTimeSpan = new TimeSpan(0, 0, 10, 0)
 
bool _cdShowMilliSeconds = true
 
bool _cdShowHoursWhenZero = true
 Whether hours shoulld be shown on countdown when they are zero. More...
 
bool _isCdSoundButtonPressed = true
 
bool _isCdSoundAlarm = true
 
string _cdStartText = "Start"
 
string _cdStopText = "Pause"
 
string _cdResetText = "Reset"
 
Color _cdStartColor = Color.Green
 
Color _cdStopColor = Color.LightSalmon
 Background color for stopwatch stop button. More...
 
Color _cdResetColor = Color.LightSalmon
 Background color for countdown reset button. More...
 
bool _cdControlsOpen = false
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.FlowLayoutPanel flowSwOuter
 
System.Windows.Forms.FlowLayoutPanel flowSwDisplay
 
System.Windows.Forms.Label dispSwHours
 
System.Windows.Forms.Label dispSwHoursSeparator
 
System.Windows.Forms.Label dispSwMin
 
System.Windows.Forms.Label dispSwMinSeparator
 
System.Windows.Forms.Label dispSwSec
 
System.Windows.Forms.Button btnSwStartStop
 
System.Windows.Forms.Button btnSwReset
 
System.Windows.Forms.Timer timer1
 
System.Windows.Forms.Button btnSwControls
 
System.Windows.Forms.GroupBox boxSwControls
 
System.Windows.Forms.Label lbSwlFontSize
 
System.Windows.Forms.NumericUpDown numSwFontSize
 
System.Windows.Forms.FlowLayoutPanel flowSwDisplayTop
 
System.Windows.Forms.FlowLayoutPanel flowSwDisplayBottom
 
System.Windows.Forms.Label dispSwSecDecimalPoint
 
System.Windows.Forms.Label dispSwMilliSec
 
System.Windows.Forms.FlowLayoutPanel flowSwButtosLeft
 
System.Windows.Forms.FlowLayoutPanel flowSwButtonsRight
 
System.Windows.Forms.FlowLayoutPanel flowSwButtons
 
System.Windows.Forms.FlowLayoutPanel flowSwControlsBasic
 
System.Windows.Forms.Label lblSwTitle
 
System.Windows.Forms.FlowLayoutPanel flowCdOuter
 
System.Windows.Forms.Label lblCdTitle
 
System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3
 
System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4
 
System.Windows.Forms.Label dispCdHours
 
System.Windows.Forms.Label dispCdHoursSeparator
 
System.Windows.Forms.Label dispCdMin
 
System.Windows.Forms.Label dispCdMinSeparator
 
System.Windows.Forms.Label dispCdSec
 
System.Windows.Forms.FlowLayoutPanel flowLayoutPanel5
 
System.Windows.Forms.Label dispCdSecDecimalPoint
 
System.Windows.Forms.Label dispCdMilliSec
 
System.Windows.Forms.FlowLayoutPanel flowCdButtons
 
System.Windows.Forms.FlowLayoutPanel flowCdButtonsLeft
 
System.Windows.Forms.Button btnCdStartStop
 
System.Windows.Forms.FlowLayoutPanel flowCdButtonsRight
 
System.Windows.Forms.Button btnCdReset
 
System.Windows.Forms.FlowLayoutPanel flowTwControlsBasic
 
System.Windows.Forms.Label lbTwlFontSize
 
System.Windows.Forms.NumericUpDown numCdFontSize
 
System.Windows.Forms.Button btnCdControls
 
System.Windows.Forms.GroupBox boxCdControls
 
FontSelectorSimple fontSelectorSw
 
System.Windows.Forms.CheckBox chkSwDisplayHours
 
System.Windows.Forms.CheckBox chkSwDisplayMilliseconds
 
System.Windows.Forms.CheckBox chkCdDisplayMilliseconds
 
System.Windows.Forms.CheckBox chkCdDisplayHours
 
FontSelectorSimple fontSelectorCd
 
System.Windows.Forms.FlowLayoutPanel flowOuter
 
System.Windows.Forms.Label lblHelpOuterFlow
 
System.Windows.Forms.CheckBox chkCdSilent
 
System.Windows.Forms.CheckBox chkSwSilent
 

Static Private Attributes

static int _defaultOutputLevel = 0
 

Constructor & Destructor Documentation

IG.Forms.TimerControlWorking.TimerControlWorking ( )
inline

Constructs a timer control.

Member Function Documentation

void IG.Forms.TimerControlWorking.LoadDefaultSounds ( )
inline
void IG.Forms.TimerControlWorking.ReportSoundError ( string  soundDescriptor,
Exception  ex 
)
inlineprivate
virtual void IG.Forms.TimerControlWorking.PlaySoundStart ( )
inlinevirtual

Plays the sound associated with clicking the start button.

virtual void IG.Forms.TimerControlWorking.PlaySoundStop ( )
inlinevirtual

Plays the sound associated with clicking the stop button.

virtual void IG.Forms.TimerControlWorking.PlaySoundReset ( )
inlinevirtual

Plays the sound associated with clicking the reset button.

virtual void IG.Forms.TimerControlWorking.PlaySoundSecondTick ( )
inlinevirtual

Plays the sound associated with a second tick.

virtual void IG.Forms.TimerControlWorking.PlaySoundMinuteBell ( )
inlinevirtual

Plays the sound associated with the whole minute switch.

virtual void IG.Forms.TimerControlWorking.PlaySoundHourBell ( )
inlinevirtual

Plays the sound associated with the whole minute switch.

virtual void IG.Forms.TimerControlWorking.PlaySoundAlarmCountdown ( )
inlinevirtual

Plays the sound associated with a countdown end.

void IG.Forms.TimerControlWorking.UpdateDisplayFonts ( )
inline

Updates fonts that are dependent on the main display font, according to this font.

virtual void IG.Forms.TimerControlWorking.UpdateDisplays ( )
inlineprotectedvirtual

Updates timer's displays.

virtual void IG.Forms.TimerControlWorking.UpdateSwDisplay ( )
inlineprotectedvirtual

Refreshes stopwatch's display according to elapsed time.

virtual void IG.Forms.TimerControlWorking.UpdateSwControls ( )
inlineprotectedvirtual

Updates stopwatch controls according to internal properties.

virtual void IG.Forms.TimerControlWorking.UpdateDisplayAppearance ( )
inlineprotectedvirtual

Updates fonts on the timer's displays.

virtual void IG.Forms.TimerControlWorking.UpdateSwButtonsAppearance ( )
inlineprotectedvirtual

Updates appearance of the stopwatch buttons.

void IG.Forms.TimerControlWorking.timer1_Tick ( object  sender,
EventArgs  e 
)
inlineprivate

Timer event handlesr, executed on every tick of thr timer.

Parameters
sender
e
void IG.Forms.TimerControlWorking.StopWatchControl_Load ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.btnSwControls_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Toggles opening/closing stopwatch's controls panel.

void IG.Forms.TimerControlWorking.chkSwSilent_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate

Toggles silent mode.

void IG.Forms.TimerControlWorking.btnSwStartStop_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Start / stop button pressed.

void IG.Forms.TimerControlWorking.btnSwReset_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.flowPanelOuter_SizeChanged ( object  sender,
EventArgs  e 
)
inlineprivate

Fired on size change of the outer panel of the control. Currently not used, but this event can be used fo triger the appropriate actions (e.g. adjust the size) of containing controls. Now containing controls are adjusted automatically (by appropriate property setting).

void IG.Forms.TimerControlWorking.fontSelectorSw_FontSelected ( object  sender,
FontEventArgs  args 
)
inlineprivate

Trigered by font selector control when a new font was selected in it.

References IG.Forms.FontEventArgs.Font.

void IG.Forms.TimerControlWorking.fontSelector_Load ( object  sender,
EventArgs  e 
)
inlineprivate

Not used.

void IG.Forms.TimerControlWorking.fontSelector_FontSelected ( object  sender,
FontEventArgs  args 
)
inlineprivate

When font is selected by the font selector, it sets the display font in this control to the selected font.

Parameters
senderControl that raised the event.
argsContains the selected font.

References IG.Forms.FontEventArgs.Font.

void IG.Forms.TimerControlWorking.SetDisplayFontSize ( double  sizeInPoints)
inline

Changes size of the display font.

Parameters
sizeInPointsNew size of the display font, in points.
void IG.Forms.TimerControlWorking.SetDisplayFontSize ( decimal  sizeInPointsDecimal)
inline

Changes size of the display font.

Parameters
sizeinPointsDecimalNew size of the display font, in points.
void IG.Forms.TimerControlWorking.numFontSize_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.numSwFontSize_Enter ( object  sender,
EventArgs  e 
)
inlineprivate

Selects the contents for easy changing by typing.

void IG.Forms.TimerControlWorking.numSwFontSize_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Selects the contents for easy changing by typing.

void IG.Forms.TimerControlWorking.chkSwDisplayMilliseconds_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.chkSwDisplayHours_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
virtual void IG.Forms.TimerControlWorking.OnStopwatchTimerTick ( )
inlineprotectedvirtual

Called when the timer event fires (very often, in the range of milliseconds). Raises the StopwatchTimerTick event and updates the display.

Sounds can not be assigned to this event.

virtual void IG.Forms.TimerControlWorking.StopwatchStartOrStop ( )
inlinevirtual

Starts (if it is not running) or stops (if it is running) the stopwatch.

virtual void IG.Forms.TimerControlWorking.StopwatchStart ( )
inlinevirtual

Starts the stopwatch.

Its internal stopwatch starts running and the StopwatchStarted event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsSwSoundButtons

If the stopwatch is already runninng or it has already finished, call to this function has no effect.

virtual void IG.Forms.TimerControlWorking.StopwatchStop ( )
inlinevirtual

Stops the stopwatch timer.

Its internal stopwatch stops running and the StopwatchStopped event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsSwSoundButtons)

If the stopwatch is paused or it has already finished, call to this function has no effect.

virtual void IG.Forms.TimerControlWorking.StopwatchResetIt ( )
inlineprotectedvirtual

Resets the stopwatch.

Its internal stopwatch stops running (if it runs) and the StopwatchReset event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsSwSoundButtons)

virtual void IG.Forms.TimerControlWorking.OnStopwatchSecondTick ( )
inlineprotectedvirtual

Called when the stopwatch seconds count reaches a whole value (seconds tick). Raises the StopwatchSecondTick event and eventually plays the appropriate "second tick" sound (if not IsSilent and if IsSwSoundSecondTick).

virtual void IG.Forms.TimerControlWorking.OnStopwatchMinuteBell ( )
inlineprotectedvirtual

Called when the stopwatch minutes count reaches a whole value (minutes signal). Raises the StopwatchMinuteBell event and eventually plays the appropriate "minutes bell" sound (if not IsSilent and if IsSwSoundMinuteBell).

virtual void IG.Forms.TimerControlWorking.OnStopwatchHourBell ( )
inlineprotectedvirtual

Called when the stopwatch hours count reaches a whole value (hour switch signal). Raises the StopwatchHourBell event and eventually plays the appropriate "hours bell" sound (if not IsSilent and if IsSwSoundHourBell).

virtual void IG.Forms.TimerControlWorking.UpdateCdInitialTimeSpan ( )
inlineprotectedvirtual

Updates initial TimeSpan of the countdown in such a way that it corresponds to its initial hours, minutes, seconds, and miilliseconds.

virtual void IG.Forms.TimerControlWorking.UpdateCdInitialTime ( )
inlineprotectedvirtual

Updates initial hours, minutes, seconds, and milliseconds of the countdown in such a way that they correspond to its intial TimeSpan.

virtual void IG.Forms.TimerControlWorking.UpdateCdDisplay ( )
inlineprotectedvirtual

Refreshes countdown's display according to elapsed time.

virtual void IG.Forms.TimerControlWorking.UpdateCdControls ( )
inlineprotectedvirtual

Updates countdown controls according to internal properties.

virtual void IG.Forms.TimerControlWorking.UpdateCdButtonsAppearance ( )
inlineprotectedvirtual

Updates appearance of the stopwatch buttons.

virtual void IG.Forms.TimerControlWorking.UpdateWatchDisplay ( )
inlineprotectedvirtual

Refreshes watch' display according to the current time.

void IG.Forms.TimerControlWorking.btnCdControls_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Toggles between open / closed control panel for the countdown.

Parameters
sender
e
void IG.Forms.TimerControlWorking.chkCdSilent_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate

Toggles silent mode.

void IG.Forms.TimerControlWorking.fontSelectorCd_FontSelected ( object  sender,
FontEventArgs  args 
)
inlineprivate
void IG.Forms.TimerControlWorking.btnCdStartStop_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.btnCdReset_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.chkCdDisplayMilliseconds_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.chkCdDisplayHours_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.numCdFontSize_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.numCdFontSize_Enter ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.TimerControlWorking.numCdFontSize_Click ( object  sender,
EventArgs  e 
)
inlineprivate
virtual void IG.Forms.TimerControlWorking.OnCountdownTimerTick ( )
inlineprotectedvirtual

Called when the timer event fires (very often, in the range of milliseconds). Raises the CountdownTimerTick event and updates the display.

Sounds can not be assigned to this event.

virtual void IG.Forms.TimerControlWorking.CountdownStartOrStop ( )
inlinevirtual

Starts (if it is not running) or stops (if it is running) the countdown.

virtual void IG.Forms.TimerControlWorking.CountdownStart ( )
inlinevirtual

Starts the countdown timer.

Its internal stopwatch starts running and the CountdownStarted event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsCdSoundButtons

If the countdown is already runninng or it has already finished, call to this function has no effect.

virtual void IG.Forms.TimerControlWorking.CountdownStop ( )
inlinevirtual

Stops the countdown timer.

Its internal stopwatch stops running and the CountdownStopped event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsCdSoundButtons)

If the countdown is paused or it has already finished, call to this function has no effect.

virtual void IG.Forms.TimerControlWorking.CountdownResetIt ( )
inlineprotectedvirtual

Resets the countdown.

Its internal stopwatch stops running (if it runs) and the CountdownReset event is raised.

Eventually the appropriate sound is played (if not IsSilent and if IsCdSoundButtons)

virtual void IG.Forms.TimerControlWorking.OnCountdownFinished ( )
inlineprotectedvirtual

Called when the countdown reaches 0 and stops counting down. Raises the CountdownFinished event and eventually plays the appropriate alarm (if not IsSilent and if IsCdSoundAlarm).

virtual void IG.Forms.TimerControlWorking.OnCountdownSecondTick ( )
inlineprotectedvirtual

Called when the countdown seconds count reaches a whole value (seconds tick). Raises the CountdownSecondTick event and eventually plays the appropriate "second tick" sound (if not IsSilent and if IsCdSoundSecondTick).

virtual void IG.Forms.TimerControlWorking.OnCountdownMinuteBell ( )
inlineprotectedvirtual

Called when the countdown minutes count reaches a whole value (minutes signal). Raises the CountdownMinuteBell event and eventually plays the appropriate "minutes bell" sound (if not IsSilent and if IsCdSoundMinuteBell).

virtual void IG.Forms.TimerControlWorking.OnCountdownHourBell ( )
inlineprotectedvirtual

Called when the countdown hours count reaches a whole value (hours signal). Raises the CountdownHourBell event and eventually plays the appropriate "hours bell" sound (if not IsSilent and if IsCdSoundHourBell).

override void IG.Forms.TimerControlWorking.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void IG.Forms.TimerControlWorking.InitializeComponent ( )
inlineprivate

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

Member Data Documentation

int IG.Forms.TimerControlWorking._defaultOutputLevel = 0
staticprivate
int IG.Forms.TimerControlWorking._outputLevel = DefaultOutputLevel
private
int IG.Forms.TimerControlWorking._maxPlayErrors = 5
private
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerStart = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerStop = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerReset = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerSecondTick = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerMinuteBell = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerHourBell = null
protected
SoundPlayer IG.Forms.TimerControlWorking._soundPlayerAlarmCountdown = null
protected
bool IG.Forms.TimerControlWorking._isSwSoundSecondTick = true
private
bool IG.Forms.TimerControlWorking._isSwSoundMinuteBell = true
private
bool IG.Forms.TimerControlWorking._isSwSoundHourBell = true
private
bool IG.Forms.TimerControlWorking._isSwSoundButtonPressed = true
private
bool IG.Forms.TimerControlWorking._isCdSoundSecondTick = true
private
bool IG.Forms.TimerControlWorking._isCdSoundMinuteBell = true
private
bool IG.Forms.TimerControlWorking._isCdSoundHourBell = true
private
int IG.Forms.TimerControlWorking._timerIntervalMs = 5
private
bool IG.Forms.TimerControlWorking._isSilent = true
private
StopWatch1 IG.Forms.TimerControlWorking._swStopwatch
private
Font IG.Forms.TimerControlWorking._fontMilli = null
private
Font IG.Forms.TimerControlWorking._displayFont = null
protected
double IG.Forms.TimerControlWorking._millisecondsSizeRatio = 0.5
private
double IG.Forms.TimerControlWorking._minDispayFontSizeInPoints = 2.0
private
bool IG.Forms.TimerControlWorking._swShowMilliSeconds = true
private
bool IG.Forms.TimerControlWorking._swShowHoursWhenZero = true
private

Whether hours shoulld be shown when they are zero.

Color IG.Forms.TimerControlWorking._colorBgWarning = Color.Red
private
Color IG.Forms.TimerControlWorking._colorBgOk = Color.Green
private
Color IG.Forms.TimerControlWorking._displayBg = Color.PaleGoldenrod
private
Color IG.Forms.TimerControlWorking._displayFg = Color.SeaGreen
private
string IG.Forms.TimerControlWorking._swStartText = "Start"
private
string IG.Forms.TimerControlWorking._swStopText = "Pause"
private
string IG.Forms.TimerControlWorking._swResetText = "Reset"
private
Color IG.Forms.TimerControlWorking._swStartColor = Color.Green
private
Color IG.Forms.TimerControlWorking._swStopColor = Color.LightSalmon
private

Background color for stopwatch stop button.

Color IG.Forms.TimerControlWorking._swResetColor = Color.LightSalmon
private
Color IG.Forms.TimerControlWorking._controlsFgClosed = Color.Black
private
Color IG.Forms.TimerControlWorking._controlsFgOpen = Color.Blue
private
string IG.Forms.TimerControlWorking._controlsClosedText = "â–¼"
private
string IG.Forms.TimerControlWorking._ontrolsOpenText = "â–²"
private
bool IG.Forms.TimerControlWorking._swControlsOpen = false
private
TimeSpan IG.Forms.TimerControlWorking._swPreviousSpan
protected
TimeSpan IG.Forms.TimerControlWorking._swCurrentSpan
protected
TimeSpan IG.Forms.TimerControlWorking._cdPreviousRemainingSpan
protected
TimeSpan IG.Forms.TimerControlWorking._cdCurrentRemainingSpan
protected
int IG.Forms.TimerControlWorking.DefaultMaxNumTimerErrorReports = 10
static

Default maximal number of times a report about timer tick exception is launched.

int IG.Forms.TimerControlWorking._maxTimerErrorReports = DefaultMaxNumTimerErrorReports
private
int IG.Forms.TimerControlWorking._numTimerErrorReports = 0
private
StopWatch1 IG.Forms.TimerControlWorking._cdStopwatch
private
int IG.Forms.TimerControlWorking._cdInitialHours = 0
private
int IG.Forms.TimerControlWorking._cdInitialMinutes = 0
private
int IG.Forms.TimerControlWorking._cdInitialSecods = 0
private
int IG.Forms.TimerControlWorking._cdInitialMs = 0
private
TimeSpan IG.Forms.TimerControlWorking._cdInitialTimeSpan = new TimeSpan(0, 0, 10, 0)
private
bool IG.Forms.TimerControlWorking._cdShowMilliSeconds = true
private
bool IG.Forms.TimerControlWorking._cdShowHoursWhenZero = true
private

Whether hours shoulld be shown on countdown when they are zero.

bool IG.Forms.TimerControlWorking._isCdSoundButtonPressed = true
private
bool IG.Forms.TimerControlWorking._isCdSoundAlarm = true
private
string IG.Forms.TimerControlWorking._cdStartText = "Start"
private
string IG.Forms.TimerControlWorking._cdStopText = "Pause"
private
string IG.Forms.TimerControlWorking._cdResetText = "Reset"
private
Color IG.Forms.TimerControlWorking._cdStartColor = Color.Green
private
Color IG.Forms.TimerControlWorking._cdStopColor = Color.LightSalmon
private

Background color for stopwatch stop button.

Color IG.Forms.TimerControlWorking._cdResetColor = Color.LightSalmon
private

Background color for countdown reset button.

bool IG.Forms.TimerControlWorking._cdControlsOpen = false
private
bool IG.Forms.TimerControlWorking._isClockRunnng = false
protected
System.ComponentModel.IContainer IG.Forms.TimerControlWorking.components = null
private

Required designer variable.

System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwOuter
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwDisplay
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwHours
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwHoursSeparator
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwMin
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwMinSeparator
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwSec
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnSwStartStop
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnSwReset
private
System.Windows.Forms.Timer IG.Forms.TimerControlWorking.timer1
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnSwControls
private
System.Windows.Forms.GroupBox IG.Forms.TimerControlWorking.boxSwControls
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.lbSwlFontSize
private
System.Windows.Forms.NumericUpDown IG.Forms.TimerControlWorking.numSwFontSize
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwDisplayTop
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwDisplayBottom
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwSecDecimalPoint
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispSwMilliSec
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwButtosLeft
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwButtonsRight
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwButtons
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowSwControlsBasic
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.lblSwTitle
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowCdOuter
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.lblCdTitle
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowLayoutPanel3
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowLayoutPanel4
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdHours
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdHoursSeparator
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdMin
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdMinSeparator
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdSec
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowLayoutPanel5
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdSecDecimalPoint
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.dispCdMilliSec
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowCdButtons
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowCdButtonsLeft
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnCdStartStop
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowCdButtonsRight
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnCdReset
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowTwControlsBasic
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.lbTwlFontSize
private
System.Windows.Forms.NumericUpDown IG.Forms.TimerControlWorking.numCdFontSize
private
System.Windows.Forms.Button IG.Forms.TimerControlWorking.btnCdControls
private
System.Windows.Forms.GroupBox IG.Forms.TimerControlWorking.boxCdControls
private
FontSelectorSimple IG.Forms.TimerControlWorking.fontSelectorSw
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkSwDisplayHours
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkSwDisplayMilliseconds
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkCdDisplayMilliseconds
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkCdDisplayHours
private
FontSelectorSimple IG.Forms.TimerControlWorking.fontSelectorCd
private
System.Windows.Forms.FlowLayoutPanel IG.Forms.TimerControlWorking.flowOuter
private
System.Windows.Forms.Label IG.Forms.TimerControlWorking.lblHelpOuterFlow
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkCdSilent
private
System.Windows.Forms.CheckBox IG.Forms.TimerControlWorking.chkSwSilent
private

Property Documentation

int IG.Forms.TimerControlWorking.DefaultOutputLevel
staticgetset

Default output level for this class of objects.

int IG.Forms.TimerControlWorking.OutputLevel
getsetprivate

Current output level for the current object.

Latger the value more console output is generated.

int IG.Forms.TimerControlWorking.MaxPlayErrors
getsetprotected
int IG.Forms.TimerControlWorking.NumPlayErrors
getsetprotected
virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerStart
get

Gets the sound player for playing sound when a start button is pressed. Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerStop
get

Gets the sound player for playing sound when the stop button is pressed. Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerReset
get

Gets the sound player for playing sound when the resett button is pressed. Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerSecondTick
get

Gets the sound player for playing sound when another second passes (a second tick). Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerMinuteBell
get

Gets the sound player for playing sound when another minute passes (a minute bell). Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerHourBell
get

Gets the sound player for playing sound when another hour passes (a hour bell). Player is pre-laded with the appropriate sound.

virtual SoundPlayer IG.Forms.TimerControlWorking.SoundPlayerAlarmCountdown
get

Gets the sound player for playing alarm when countdown finishes. Player is pre-laded with the appropriate sound.

virtual bool IG.Forms.TimerControlWorking.IsSwSoundSecondTick
getset

Whether a tick sound is switched on (launched every second when the stopwatch is running).

virtual bool IG.Forms.TimerControlWorking.IsSwSoundMinuteBell
getset

Whether a minutes bell sound is switched on (launched every minute when the stopwatch is running).

virtual bool IG.Forms.TimerControlWorking.IsSwSoundHourBell
getset

Whether a hour bell sound is switched on (launched every hour when the stopwatch is running).

virtual bool IG.Forms.TimerControlWorking.IsSwSoundButtons
getset

Whether the stopwatch's button sound is switched on (launched every time a stopwatch button with some effect is pressed, or the same effect is achieved programatically).

virtual bool IG.Forms.TimerControlWorking.IsCdSoundSecondTick
getset

Whether the countdown's tick sound is switched on (a sound launched every second when the countdown is running).

virtual bool IG.Forms.TimerControlWorking.IsCdSoundMinuteBell
getset

Whether the countdown's minute bell sound is switched on (a sound launched every minute when the countdown is running).

virtual bool IG.Forms.TimerControlWorking.IsCdSoundHourBell
getset

Whether the countdown's hpur bell sound is switched on (a sound launched every hour when the countdown is running).

bool IG.Forms.TimerControlWorking.IsRunning
get

Indicates whether the timer is currently running or not.

True is returned if either a stopwatch is running, a countdown is running, or the current time is displayed.

int IG.Forms.TimerControlWorking.TimerIntervalMs
getsetprotected

Timer interval, in Milliseconds.

virtual bool IG.Forms.TimerControlWorking.IsSilent
getset

Flag specifying whether the complete timer is in a silent mode.

StopWatch1 IG.Forms.TimerControlWorking.SwStopwatch
getprotected

Stopwatch used to measure elapsed time for the displayed stopwatch.

bool IG.Forms.TimerControlWorking.IsStopwatchRunning
get

Indicates whether the countdown timer is running or not.

TimeSpan IG.Forms.TimerControlWorking.StopwatchTotalTimeSpan
get

Gets the current time span measured by the stopwatch.

double IG.Forms.TimerControlWorking.StopWatchTotalTime
get

Gets the current time span measured by the stopwatch.

Font IG.Forms.TimerControlWorking.FontMilli
getsetprotected

Font used in timer's displays for milliseconds.

Font IG.Forms.TimerControlWorking.DisplayFont
getsetprotected

Font used in timerr's displays.

double IG.Forms.TimerControlWorking.MilliSecondsSizeRatio
getset

Ratio between the size of millisecond digits and other digits on the stopwatch.

double IG.Forms.TimerControlWorking.MinDispayFontSizeInPoints
getprotected set

Minimal size of display font, in points.

bool IG.Forms.TimerControlWorking.SwShowMilliSeconds
getset

Whether milliseconds shoulld be shown.

bool IG.Forms.TimerControlWorking.SwShowHoursWhenZero
getset
Color IG.Forms.TimerControlWorking.ColorBgWarning
getset
Color IG.Forms.TimerControlWorking.ColorBgOk
getset
Color IG.Forms.TimerControlWorking.ColorInvisible
get
Color IG.Forms.TimerControlWorking.DisplayBg
getprotected set

Display background color.

Color IG.Forms.TimerControlWorking.DisplayFg
getprotected set

Display foreground color.

string IG.Forms.TimerControlWorking.SwStartText
getset

Text that is written on the stopwatch start button.

string IG.Forms.TimerControlWorking.SwStopText
getset
string IG.Forms.TimerControlWorking.SwResetText
getprotected set
Color IG.Forms.TimerControlWorking.SwStartColor
getprotected set

Background color for stopwatch start button.

Color IG.Forms.TimerControlWorking.SwStopColor
getprotected set
Color IG.Forms.TimerControlWorking.SwResetColor
getprotected set

Background color for stopwatch reset button.

Color IG.Forms.TimerControlWorking.ControlsFgClosed
getprotected set

Foreground color for controls opener when controls are closed.

Color IG.Forms.TimerControlWorking.ControlsFgOpen
getprotected set

Foreground color for controls opener when controls are opened.

string IG.Forms.TimerControlWorking.ControlsClosedText
getprotected set

Tect for controls opener when controls are closed.

string IG.Forms.TimerControlWorking.ControlsOpenText
getprotected set

Tect for controls opener when controls are opened.

bool IG.Forms.TimerControlWorking.IsSwControlsOpened
getprotected set

Wheether controls are opened or not.

int IG.Forms.TimerControlWorking.MaxTimerErrorReports
getsetprotected

Macimal number of times a report on exception thrown within the timer tick event can be launched.

int IG.Forms.TimerControlWorking.NumTimerErrorReports
getsetprotected

Number of times a report on exception thrown within the timer tick event has already been launched.

StopWatch1 IG.Forms.TimerControlWorking.CdStopwatch
getprotected

Stopwatch used to measure elapsed time for the displayed cowntdown.

bool IG.Forms.TimerControlWorking.IsCountdownRunning
get

Indicates whether the countdown timer is running or not.

TimeSpan IG.Forms.TimerControlWorking.CountdownTotalTimeSpan
get

Gets the current total time span measured by the countdown's stopwatch.

double IG.Forms.TimerControlWorking.CountdownTotalTime
get

Gets the current time span measured by the countdown's stopwatch.

TimeSpan IG.Forms.TimerControlWorking.CountdownRemainingTimeSpan
get

Gets Countdown's remaining time span.

Returns
double IG.Forms.TimerControlWorking.CountdownRemainingTime
get

Returns Countdown's remaining time in seconds.

Returns
virtual int IG.Forms.TimerControlWorking.CdInitialHours
getsetprotected

Number of hours initially set in countdown.

virtual int IG.Forms.TimerControlWorking.CdInitialMinutes
getsetprotected

Number of minutes initially set in countdown.

virtual int IG.Forms.TimerControlWorking.CdInitialSeconds
getsetprotected

Number of seconds initially set in countdown.

virtual int IG.Forms.TimerControlWorking.CdInitialMilliseconds
getsetprotected

Number of milliseconds initially set in countdown.

virtual TimeSpan IG.Forms.TimerControlWorking.CdInitialTimeSpan
getsetprotected

Initial time span set in countdown.

bool IG.Forms.TimerControlWorking.CdShowMilliSeconds
getset

Whether milliseconds shoulld be shown on countdown.

bool IG.Forms.TimerControlWorking.CdShowHoursWhenZero
getset
virtual bool IG.Forms.TimerControlWorking.IsCdSoundButtons
getset

Whether the countdown's button sound is switched on (a sound launched every time a countdown button with some effectt is pressed, or the same effect is achieved programatically).

virtual bool IG.Forms.TimerControlWorking.IsCdSoundAlarm
getset

Whether a countdown's alarm sound is switched on (launched when the countdown is finished, i.e. the countdown reachhes zero).

string IG.Forms.TimerControlWorking.CdStartText
getset

Text that is written on the stopwatch start button.

string IG.Forms.TimerControlWorking.CdStopText
getset
string IG.Forms.TimerControlWorking.CdResetText
getprotected set
Color IG.Forms.TimerControlWorking.CdStartColor
getprotected set

Background color for stopwatch start button.

Color IG.Forms.TimerControlWorking.CdStopColor
getprotected set
Color IG.Forms.TimerControlWorking.CdResetColor
getprotected set
bool IG.Forms.TimerControlWorking.IsCdControlsOpened
getprotected set

Wheether controls are opened or not.

bool IG.Forms.TimerControlWorking.IsClockRunning
getset

Event Documentation

EventHandler IG.Forms.TimerControlWorking.StopwatchTimerTick

Event that is fired on each stopwatch's timer tick (very often, in the range of milliseconds).

This event is usually useful for debugging or for very fine control.

EventHandler IG.Forms.TimerControlWorking.StopwatchStarted

Event that is fired when the stopwatch starts.

EventHandler IG.Forms.TimerControlWorking.StopwatchStopped

Event that is fired when the stopwatch stops.

EventHandler IG.Forms.TimerControlWorking.StopwatchReset

Event that is raised when the counter is reset.

EventHandler IG.Forms.TimerControlWorking.StopwatchSecondTick

Event that is fired when second count changes to a whole value (seconds tick).

EventHandler IG.Forms.TimerControlWorking.StopwatchMinuteBell

Event that is fired when minutes count changes to a whole value (minutes signal).

EventHandler IG.Forms.TimerControlWorking.StopwatchHourBell

Event that is fired when minutes count changes to a whole value (minute switch signal).

EventHandler IG.Forms.TimerControlWorking.CountdownTimerTick

Event that is fired on each countdown's timer tick (very often, in the range of milliseconds).

This event is usually usef for debugging or for very fine control.

EventHandler IG.Forms.TimerControlWorking.CountdownStarted

Event that is fired when the countdown starts.

EventHandler IG.Forms.TimerControlWorking.CountdownStopped

Event that is fired when the countdown stops.

EventHandler IG.Forms.TimerControlWorking.CountdownReset

Event that is raised when the counter is reset.

EventHandler IG.Forms.TimerControlWorking.CountdownFinished

Event that is fired when the countdown reaches 0.

EventHandler IG.Forms.TimerControlWorking.CountdownSecondTick

Event that is fired when second count changes to a whole value (seconds tick).

EventHandler IG.Forms.TimerControlWorking.CountdownMinuteBell

Event that is fired when minutes count changes to a whole value (minutes signal).

EventHandler IG.Forms.TimerControlWorking.CountdownHourBell

Event that is fired when gours count changes to a whole value (hours signal).


The documentation for this class was generated from the following files: