Esempio n. 1
0
 public RequestsViewModel(RequestsView requestView, vwUser user)
 {
     this.requestView = requestView;
     User             = user;
     NotFriendsList   = users.UsersNotInFriends(User);
     RequestList      = requests.ViewRecipientRequest(User);
 }
Esempio n. 2
0
        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();
        }