Esempio n. 1
0
        public SignUpViewModel(INavigation nav)
        {
            _nav        = nav;
            CurrentPage = DependencyInject <SingUpView> .Get();

            OpenPage();
        }
Esempio n. 2
0
        public LoginViewModel(INavigation nav)
        {
            _nav        = nav;
            CurrentPage = DependencyInject <LoginView> .Get();

            OpenPage();
        }
Esempio n. 3
0
        public AddEmployeeViewModel(INavigation nav)
        {
            _nav        = nav;
            CurrentPage = DependencyInject <AddEmployeeView> .Get();

            OpenPage();
        }
Esempio n. 4
0
        public TestViewModel(INavigation nav)
        {
            //
            _nav        = nav;
            CurrentPage = DependencyInject <EmployeesView> .Get();

            OpenPage();
            //
        }
Esempio n. 5
0
        public EmployeesViewModel(INavigation nav)
        {
            DisplayEmployees();
            //
            _Employees = new ObservableCollection <Employee>();
            //
            _nav        = nav;
            CurrentPage = DependencyInject <EmployeesView> .Get();

            OpenPage();
        }
Esempio n. 6
0
        public DetailViewModel(INavigation nav, Employee employee)
        {
            ID          = employee.Id;
            Name        = employee.Name;
            GSM         = employee.GSM;
            Department  = employee.Department;
            CIN         = employee.CIN;
            _nav        = nav;
            CurrentPage = DependencyInject <DetailView> .Get();

            OpenPage();

            //if (o != null)
            //{
            //    CurrentPage.BindingContext = o;
            //}
        }