public DatabaseDtoP(string connectionString) { ConnectString = connectionString; dtopallocation = new MongoHelper<DToPAllocation>(ConnectString); PAccount = new DatabasePAccount(ConnectString); DAccount = new DatabaseDAccount(ConnectString); }
public void Create(PatientDetails details) { DatabasePAccount logininfo = new DatabasePAccount(ConnectString); // Only Create if account exists in Patient Accounts collection and not already in details if ((logininfo.CheckUserName(details.PUserName)) && (!CheckUserName(details.PUserName))) { details.Workouts = new List<PatientWorkout>(); details.Diagnosis = new List<PatientDiagnosis>(); details.Messages = new List<PatientMessages>(); patientdetails.Collection.Save(details); } else { } }
void Start() { // Default Colour is saved col = renderer.material.color; // Creation of Patient Database management Class pAccount = new DatabasePAccount (); // Change password window size windowRect = new Rect ((Screen.width / 3)+80, (Screen.height / 3), Screen.width / 4, Screen.height / 4); // Error window size errorRect = new Rect((Screen.width / 3)+80, (Screen.height / 3)+10, Screen.width / 4, Screen.height / 5); }
void Start() { patientlogin = new DatabasePAccount (); windowRect = new Rect ((Screen.width / 3)+80, (Screen.height / 3), Screen.width / 4, Screen.height / 4); errorRect = new Rect((Screen.width / 3)+80, (Screen.height / 3)+10, Screen.width / 4, Screen.height / 5); if (PlayerPrefs.HasKey ("CurrentUser")) { Application.LoadLevel("MenuScene"); } }
public DatabaseDtoP() { dtopallocation = new MongoHelper<DToPAllocation>(); PAccount = new DatabasePAccount(); DAccount = new DatabaseDAccount(); }