Example #1
0
        public LoginView(IRegionManager regionManager, LoginContext loginContext, Client client)
        {
            _regionManager = regionManager;
            _loginContext = loginContext;
            _client = client;

            DataContext = this;
            NavigateStudent = new DelegateCommand(LoginStudent);
            NavigateGetTeacherPassword = new DelegateCommand(GetTeacherPassword);
            InitializeComponent();
        }
Example #2
0
        public PasswordView(IRegionManager regionManager, LoginContext loginContext, Client client)
        {
            _regionManager = regionManager;
            _loginContext = loginContext;
            _client = client;

            DataContext = this;
            NavigateTeacher = new DelegateCommand<string>(LoginTeacher);
            NavigateBack = new DelegateCommand(GoBack);
            InitializeComponent();
        }
Example #3
0
 public Client(LoginContext loginCuntext)
 {
     _loginContext = loginCuntext;
     Context = new Default.Container(new Uri(serverUri));
     Context.SendingRequest2 += SetMasterPasswordHeader;
 }