public UserStatsReportOptions(User user) { InitializeComponent(); this.User = user; UserSearchResult allUsers = new UserSearchResult { Username = "******", FullName = "", UserID = -1 }; var service = new SupportService(user); var model = service.GetUsers(); model.Insert(0, allUsers); cmbUser.ItemsSource = model; cmbUser.SelectedIndex = 0; StartDate = DateTime.Now; EndDate = DateTime.Now; this.DataContext = this; }
public UserEntityViewModel(UserSearchResult user) { this.User = user; this.GroupId = user.GroupID; this.GroupName = user.Group; this.FullName = user.FullName; this.Description = user.Description; this.Username = user.Username; this.UserId = user.UserID; }