/// <summary> /// Initializes a new instance of the UserViewModel class. /// </summary> public UserViewModel() { if (IsInDesignMode) { this.User = new Web.FishermanUser() { Username = "******", Name = "Тодор Михайлов", }; } else { context = new FishingPointContext(); // Code runs "for real": Connect to service, etc... this.User = new FishermanUser(); LoadCurrentUser(); } }
/// <summary> /// Initialize the FishermanUserDataContext /// </summary> public FishermanUserDataService() { Context = new FishingPointContext(); Context.PropertyChanged += ContextPropertyChanged; }