public void OnNavigatedTo(object arg) { if (arg is int) { _managingUser = new ManagingUserAccountsModel(); _fullInfo = _managingUser.FullInfoDekanat(Convert.ToInt32(arg)); } else if (arg is FullInfoDekanat) { _managingUser = new ManagingUserAccountsModel(); _fullInfo = (FullInfoDekanat)arg; } else { throw new ArgumentException(); } }
public void OnNavigatedTo(object arg) { if (arg is FullInfoDekanat) { _fullInfo = (Users)arg; _fullDekanatInfo = (FullInfoDekanat)arg; _managingUser = new ManagingUserAccountsModel(); } else if (arg is FullInfoAdmin) { _fullInfo = (Users)arg; _fullAdminInfo = (FullInfoAdmin)arg; _managingUser = new ManagingUserAccountsModel(); } else { throw new ArgumentException(); } }