public void Load() { var proxy = new WebClient(); var uri = string.Format( "{0}/user?token={1}", ServiceHelper.ServiceUri, this.Token); proxy.OpenReadCompleted += OnLoadCompleted; proxy.OpenReadAsync(new Uri(uri, UriKind.Absolute)); }
private void Load() { this.BusyIndicator.Visibility = Visibility.Visible; var model = new UsersModel(); model.Token = this.Token; model.IsActive = null; model.IsArchived = null; model.LoadCompleted += LoadCompleted; this.Model = model; model.Load(); }