Beispiel #1
0
        public void SetUserStartingDirectory(string sUser, string sDirectory)
        {
            UserDataItem item = GetUserItem(sUser);

            if (item != null)
            {
                item.StartingDirectory = sDirectory;
            }
        }
Beispiel #2
0
        public void SetUserPassword(string sUser, string sPassword)
        {
            UserDataItem item = GetUserItem(sUser);

            if (item != null)
            {
                item.Password = sPassword;
            }
        }
Beispiel #3
0
        public string GetUserStartingDirectory(string sUser)
        {
            UserDataItem item = GetUserItem(sUser);

            if (item != null)
            {
                return(item.StartingDirectory);
            }
            else
            {
                return("C:\\");
            }
        }
Beispiel #4
0
        public string GetUserPassword(string sUser)
        {
            UserDataItem item = GetUserItem(sUser);

            if (item != null)
            {
                return(item.Password);
            }
            else
            {
                return("");
            }
        }
Beispiel #5
0
        public bool HasUser(string sUser)
        {
            UserDataItem item = GetUserItem(sUser);

            return(item != null);
        }