public IndexVM(LoginVM loginVm) { _loginVm = loginVm; ExecuteOpenKierunekCommand = new Commanding(AddKierunekCommand, CanAddKierunekCommand); ExecuteOpenSemestrCommand = new Commanding(AddSemesterCommand, CanAddSemesterCommand); ExecuteOpenPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand); ExecuteEditStudentCommand = new Commanding(EditProfile, CanEditProfile); ExecuteEditPhotoCommand = new Commanding(EditPhotoCommand, CanEditPhotoCommand); NumeryIndeksow = Student.CurentUserIndexList(_loginVm.CurrentUserId); Logins = Login.GetLogins(_loginVm.CurrentUserId); PhotoSource = Zdjecie.GetZdjecieSource(_loginVm.CurrentUserId); }
public Index(LoginVM loginVm) { _loginVm = loginVm; DataContext = new IndexVM(_loginVm); InitializeComponent(); }
public LogInView() { InitializeComponent(); DataContext = new LoginVM(); }