/// <summary> ///Method which handles the start of the mode. Checks for a connection to the Earables and a valid ActivityList, ///initializes the Interator and starts the sampling of the Earables. /// </summary> /// <returns>Bool if the start was successfull</returns> public override bool StartActivity() { if (CheckConnection() && ActivityList.Count > 0) { _pushUpResult = 0; _sitUpResult = 0; PauseTimer = new Timer(); ActivityIterator = ActivityList.GetEnumerator(); ActivityIterator.MoveNext(); ((IEarablesConnection)ServiceManager.ServiceProvider.GetService(typeof(IEarablesConnection))).StartSampling(); CheckNextActivity(); return(true); } return(false); }