コード例 #1
0
    void Start()
    {
        // --------------------initialize database stuff--------------------
        db = new dbAccess();
        db.OpenDB(dbName);

        columnNames       = new List <string>();
        columnValues      = new List <string>();
        newpatientCol     = new List <string>();
        newpatientEntries = new List <string>();
        newtableCol       = new List <string>();
        newtableVal       = new List <string>();
        newsessionCol     = new List <string>();
        newsessionEntries = new List <string>();

        SetupNewPatient();
        PresetNewSessionValues();

        newpatientCol.Add("LastName");
        newpatientCol.Add("FirstName");
        newpatientCol.Add("Therapist");
        newpatientCol.Add("username");
        newpatientCol.Add("password");

        // If first time playing, create patient table
        columnNames.Add("PatientID");
        columnNames.Add("LastName");
        columnNames.Add("FirstName");
        columnNames.Add("Therapist");
        columnNames.Add("username");
        columnNames.Add("password");
        columnValues.Add("INTEGER");
        columnValues.Add("text");
        columnValues.Add("text");
        columnValues.Add("text");
        columnValues.Add("text");
        columnValues.Add("text");
        db.CreateTableIfNotExist(tableName, columnNames, columnValues);
    }
コード例 #2
0
ファイル: LoginScreen.cs プロジェクト: owaisnm/GesBalance
    void Start()
    {
        // --------------------initialize database stuff--------------------
        db = new dbAccess();
        db.OpenDB(dbName);

        columnNames = new List<string>();
        columnValues = new List<string>();
        newpatientCol = new List<string>();
        newpatientEntries = new List<string>();
        newtableCol = new List<string>();
        newtableVal = new List<string>();
        newsessionCol = new List<string>();
        newsessionEntries = new List<string>();

        SetupNewPatient();
        PresetNewSessionValues();

        newpatientCol.Add ("LastName");
        newpatientCol.Add ("FirstName");
        newpatientCol.Add ("Therapist");
        newpatientCol.Add ("username");
        newpatientCol.Add ("password");

        // If first time playing, create patient table
        columnNames.Add ("PatientID");
        columnNames.Add ("LastName");
        columnNames.Add ("FirstName");
        columnNames.Add ("Therapist");
        columnNames.Add ("username");
        columnNames.Add ("password");
        columnValues.Add ("INTEGER");
        columnValues.Add ("text");
        columnValues.Add ("text");
        columnValues.Add ("text");
        columnValues.Add ("text");
        columnValues.Add ("text");
        db.CreateTableIfNotExist(tableName,columnNames,columnValues);
    }