예제 #1
0
        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);
        }
예제 #2
0
 public Index(LoginVM loginVm)
 {
     _loginVm = loginVm;
     DataContext = new IndexVM(_loginVm);
     InitializeComponent();
 }
예제 #3
0
 public LogInView()
 {
     InitializeComponent();
     DataContext = new LoginVM();
 }