public PermitUserPage(MainViewModel _viewModel)
 {
     InitializeComponent();
     DataContext = _viewModel;
     _viewModel.FilegroupCollection = DataBaseInteraction.GetListOfAllFilegroups();
     filegroupList.ItemsSource      = _viewModel.FilegroupCollection;
 }
 public AddFilegroupPage(MainViewModel _viewModel)
 {
     InitializeComponent();
     _viewModel.FileID                 = 0;
     _viewModel.FileModel              = new FilegroupViewModel();
     _viewModel.FilegroupCollection    = DataBaseInteraction.GetListOfAllFilegroups();
     filegroupList.ItemsSource         = _viewModel.FilegroupCollection;
     _viewModel.AllowedUsersCollection = DataBaseInteraction.GetListOfAllowedUsers(_viewModel.FileID);
     usersAllowedList.ItemsSource      = _viewModel.AllowedUsersCollection;
 }
Exemple #3
0
 public UserPermissionPage(MainViewModel _viewModel)
 {
     InitializeComponent();
     this._viewModel                = _viewModel;
     _viewModel.UserCollection      = DataBaseInteraction.GetListOfAllUsers();
     usersList.ItemsSource          = _viewModel.UserCollection;
     _viewModel.PositionsCollection = DataBaseInteraction.GetListOfAllPossitions();
     possitionsList.ItemsSource     = _viewModel.PositionsCollection;
     _viewModel.FilegroupCollection = DataBaseInteraction.GetListOfAllFilegroups();
 }