public RequestsViewModel(RequestsView requestView, vwUser user) { this.requestView = requestView; User = user; NotFriendsList = users.UsersNotInFriends(User); RequestList = requests.ViewRecipientRequest(User); }
public void SetData(Folder value) { Title = value.title; FileName = value.file; StartDate = value.start; EndDate = value.end; Metrics = value.metrics; Dimensions = value.dimensions; Filters = value.filters; Segment = value.segment; Sort = value.sort; MaxResults = value.max == 0 ? null : (int?)value.max; Desample = value.desample; FullUpdate = value.full; var requests = Requests; requests.Clear(); foreach (var element in value.requests) { requests.Add(new RequestView(element)); } RequestsView.MoveCurrentToFirst(); }
private void viewRequests() { RequestsView requests = new RequestsView(); requests.Show(); }