コード例 #1
0
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());

            User u = new User();
            u.setPassword("pasword");
            u.setUsername("usrnm");
            UsersWrapper wrapper = new UsersWrapper();
            List<User> users = new List<User>();
            users.Add(u);
            wrapper.setUsers(users);
            XMLManager.writeUsers(wrapper);
        }
コード例 #2
0
 public static void writeUsers(UsersWrapper users) {
     Easy.save(users, Constants.USERS_FILE_NAME);
 }