static void Main()
        {
            // CHANGE IT TO FileUserStore !!!!
            var fileUserStore = new FileUserStore();
            var userService   = new UserService(fileUserStore);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Login(userService, fileUserStore));
        }
Exemple #2
0
 public UserService(FileUserStore fileStore)
 {
     _fileStore = fileStore;
 }
 public Signup(UserService userService, FileUserStore fileUserStore)
 {
     InitializeComponent();
     _userService   = userService;
     _fileUserStore = fileUserStore;
 }