Ejemplo n.º 1
0
        public void SaveUsername(string username)
        {
            if (tap5050db != null) {
                //if can get one update it as latest logged user
             	var obj = GetUsername (username);

                var stocksStarting=tap5050db.Execute("UPDATE UsernameTableObject SET LatestUsedAccount=0");

                if (obj != null) {
                    obj.LatestUsedAccount = 1;
                    tap5050db.Update (obj);
                }
                //if can not get one insert it
                else {
                    UsernameTableObject tempobj =new UsernameTableObject(username,1,0);
                    tap5050db.InsertOrReplace (tempobj);
                }
            }
        }
Ejemplo n.º 2
0
 public void SetLogged(string username)
 {
     if (tap5050db != null) {
         UsernameTableObject obj = new UsernameTableObject (username,1,1);
         tap5050db.Update (obj);
     }
 }