Beispiel #1
0
 public clsGames(string connectionString)
     : this()
 {
     ucmain = new UCMain(connectionString, DisplayName);
     ucmain.activityActionEvent += ucmain_actionEvent;
     ucmain.EventSeqStatus      += ucmain_EventSeqStatus;
     ucmain.UpdateEndTime       += ucmain_UpdateEndTime;
 }
Beispiel #2
0
 public clsGames(string connectionString, string gameSuccessSoundFileName, string gameErrorSoundFileName, CultureInfo cul, ResourceManager resMan, int PatientId, bool _isTherapist, string fontSizeParameter)
     : this()
 {
     FontSizeParameter                     = fontSizeParameter;
     GlobalStatic.currCul                  = cul;
     CommonStatic.currPatientId            = PatientId;
     CommonStatic.GameSuccessSoundFileName = gameSuccessSoundFileName;
     CommonStatic.GameErrorSoundFileName   = gameErrorSoundFileName;
     CommonStatic.Cul    = cul;
     CommonStatic.resMan = resMan;
     this.DisplayName    = TranslateLocalResource("GameName");
     IsTherapist         = _isTherapist;
     ucmain                             = new UCMain(connectionString, DisplayName);
     ucmain.DataContext                 = this;
     ucmain.EventSeqStatus             += ucmain_EventSeqStatus;
     ucmain.activityActionEvent        += ucmain_actionEvent;
     ucmain.UpdateEndTime              += ucmain_UpdateEndTime;
     ucmain.EventMouseDown             += ucmain_EventMouseDown;
     ucmain.EventClickGameLevel        += ucmain_EventClickGameLevel;
     ucmain.EventClickSeq              += ucmain_EventClickSeq;
     ucmain.EventNavigationButtonClick += ucmain_EventNavigationButtonClick;
     ucmain.EventSequenceTransition    += ucmain_EventSequenceTransition;
 }