remove pack from codes repo and apply some Alert Events and also Time Tracking Events ...
This commit is contained in:
@@ -130,6 +130,9 @@ input bool x121EATerminalAlerts = false; // Terminal Alerts
|
||||
//
|
||||
// Local Variables ...
|
||||
|
||||
//
|
||||
XTimeTracker x121EATimeTracker;
|
||||
|
||||
//
|
||||
string x121EAUsedSymbols[];
|
||||
XSCX121SetupEA *x121EA;
|
||||
@@ -154,6 +157,10 @@ int OnInit()
|
||||
return INIT_PARAMETERS_INCORRECT;
|
||||
}
|
||||
|
||||
//
|
||||
// Initializitation Succeed Message ...
|
||||
x121EA.Alert("Initialized Successfully ...");
|
||||
|
||||
//
|
||||
// Init Succeed ...
|
||||
return INIT_SUCCEEDED;
|
||||
@@ -182,12 +189,37 @@ void OnDeinit(const int reason)
|
||||
//
|
||||
delete x121EACTHelper;
|
||||
delete x121EACCHelper;
|
||||
|
||||
//
|
||||
// De Initialization Succeed ...
|
||||
x121EA.Alert("De Initialized Successfully ...");
|
||||
}
|
||||
|
||||
//
|
||||
// On Tick Handler ...
|
||||
void OnTick()
|
||||
{
|
||||
//
|
||||
// Time Tracking ...
|
||||
|
||||
//
|
||||
if (x121EATimeTracker.IsNewHour())
|
||||
{
|
||||
x121EA.Alert("New Hour ...");
|
||||
}
|
||||
|
||||
//
|
||||
if (x121EATimeTracker.IsNewDay())
|
||||
{
|
||||
x121EA.Alert("New Day ...");
|
||||
}
|
||||
|
||||
//
|
||||
if (x121EATimeTracker.IsNewMonth())
|
||||
{
|
||||
x121EA.Alert("New Mount ...");
|
||||
}
|
||||
|
||||
//
|
||||
x121EA.OnTick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user