示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="container">Dependency injection container</param>
 /// <param name="account">Account that will be updated</param>
 public VMUpdateAccount(
     IContainer container,
     BeforeOurTime.Models.Modules.Account.Models.Account account)
 {
     Container      = container;
     Account        = account;
     AccountService = Container.Resolve <IAccountService>();
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="container">Dependency injection container</param>
 /// <param name="account">Account to update</param>
 public UpdateLoginPage(
     IContainer container,
     BeforeOurTime.Models.Modules.Account.Models.Account account)
 {
     InitializeComponent();
     Container      = container;
     BindingContext = ViewModel = new UpdateLoginPageViewModel(container, account);
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="container">Dependency injection container</param>
 /// <param name="account">Account that will be updated</param>
 public UpdateLoginPageViewModel(
     IContainer container,
     BeforeOurTime.Models.Modules.Account.Models.Account account) : base(container)
 {
     VMUpdateAccount  = new VMUpdateAccount(container, account);
     AccountService   = container.Resolve <IAccountService>();
     Account          = account;
     _originalAccount = JsonConvert.DeserializeObject <BeforeOurTime.Models.Modules.Account.Models.Account>(JsonConvert.SerializeObject(account));
 }