public ProfileViewModel()
 {
     Change = new MyICommand(ChangeProfile);
     _repo  = new PictureManagerRepository();
     if (MainViewModel.logedInUser != null)
     {
         NewUser.Username = MainViewModel.logedInUser.Username;
     }
 }
 public LogInViewModel()
 {
     LogInCommand    = new MyICommand(LogIn);
     RegisterCommand = new MyICommand(Register);
     _repo           = new PictureManagerRepository();
 }
Ejemplo n.º 3
0
 public AddImageViewModel()
 {
     AddImage   = new MyICommand(AddImageExecute);
     ChoseImage = new MyICommand(OpenImage);
     _repo      = new PictureManagerRepository();
 }
 public RegisterViewModel()
 {
     Register = new MyICommand(AddUser);
     Cancel   = new MyICommand(ExecuteCancel);
     _repo    = new PictureManagerRepository();
 }