public UserSelectionWindowViewModel(UserSelectionWindow window) { this._window = window; var helper = new RestHelper(); this.SelectUserCommand = new RelayCommand(SelectUser); Users = helper.GetAsync().Result; SelectedUser = Users.First(u => u.RealName.ToLower().Contains("benoit")); }
public static void ShowSelectUserWindow() { var window = new UserSelectionWindow(); window.ShowDialog(); }