public static bool StoreDataProprioception(objDataSample DataSample, int UserID)
        {
            DataClasses.ProprioceptionProgram ProprioceptionProgram = new ProprioceptionProgram();
            ProprioceptionProgram.UserID = UserID;
            ProprioceptionProgram.Date = DateTime.Now;
            ProprioceptionProgram.SessionDuration = DataSample.SessionDuration.TotalSeconds;
            ProprioceptionProgram.LeftMaxConcP = DataSample.SessionMaxEcceTorqueAbs;
            ProprioceptionProgram.LeftMaxEcceP = DataSample.SessionMaxEcceTorqueBack;
            ProprioceptionProgram.RightMaxConcP = DataSample.SessionMaxConcTorqueAbs;
            ProprioceptionProgram.RightMaxEcceP = DataSample.SessionMaxConcTorqueBack;
            ProprioceptionProgram.LeftAvgConcP = DataSample.SessionAvgEcceTorqueAbs;
            ProprioceptionProgram.LeftAvgEcceP = DataSample.SessionAvgEcceTorqueAbs;
            ProprioceptionProgram.RightAvgConcP = DataSample.SessionAvgConcTorqueAbs;
            ProprioceptionProgram.RightAvgEcceP = DataSample.SessionAvgConcTorqueBack;
            ProprioceptionProgram.LeftStrengthIndex = DataSample.SessionStrengthIndexBack;
            ProprioceptionProgram.LeftEnduranceIndex = DataSample.SessionEnduranceIndexBack;
            ProprioceptionProgram.RightStrengthIndex = DataSample.SessionStrengthIndexAbs;
            ProprioceptionProgram.RightEnduranceIndex = DataSample.SessionEnduranceIndexAbs;
            ProprioceptionProgram.DistConc = DataSample.DistanceConc;
            ProprioceptionProgram.DistEcce = DataSample.DistanceEcce;
            ProprioceptionProgram.EnergyBurned = DataSample.TotalEnergyBurned;
            ProprioceptionProgram.DifficultyLevel = DataSample.DifficultyLevel;

            if (GlobalVariables.WriteToRemoteServer == true)
            {
                if (StoreDataProprioceptionProgram_RemoteDB(ProprioceptionProgram, UserID, DataSample.DifficultyLevel) == true)
                    return true;
                else
                    return false;
            }
            else if (GlobalVariables.WriteToRemoteServer == false)
            {
                if (StoreDataProprioceptionProgram_LocalDB(ProprioceptionProgram, UserID, DataSample.DifficultyLevel) == true)
                    return true;
                else
                    return false;
            }
            else
                return false;
        }
 partial void UpdateProprioceptionProgram(ProprioceptionProgram instance);
 partial void DeleteProprioceptionProgram(ProprioceptionProgram instance);
 partial void InsertProprioceptionProgram(ProprioceptionProgram instance);