示例#1
0
        void GetUsers()
        {
            if (!File.Exists(JsonFunctions.GetFilepath(filename)))
            {
                users = new List <User>();
                JsonFunctions.WriteJSON(users, JsonFunctions.GetFilepath(filename));
                return;
            }

            users = JsonFunctions.ReadUserJSON(JsonFunctions.GetFilepath(filename));
        }
示例#2
0
 private List <User> GetAllUsers()
 {
     return(JsonFunctions.ReadUserJSON(JsonFunctions.GetFilepath(UserForm.filename)));
 }