public void OnNavigatedTo(object arg)
 {
     if (arg is FullInfoTeacher)
     {
         _fullInfo      = (FullInfoTeacher)arg;
         _managingUser  = new ManagingUserAccountsModel();
         _positionsList = _managingUser.GetPositions;
     }
     else
     {
         throw new ArgumentException();
     }
 }
Beispiel #2
0
 public void OnNavigatedTo(object arg)
 {
     if (arg is int)
     {
         _managingUserAccounts = new ManagingUserAccountsModel();
         _fullInfo             = _managingUserAccounts.FullInfoTeacher(Convert.ToInt32(arg));
     }
     else if (arg is FullInfoTeacher)
     {
         _managingUserAccounts = new ManagingUserAccountsModel();
         _fullInfo             = (FullInfoTeacher)arg;
     }
     else
     {
         throw new ArgumentException();
     }
 }