示例#1
0
        public LoginViewModel(INavigation nav)
        {
            _nav        = nav;
            CurrentPage = DependencyInject <MainPage> .Get();

            OpenPage();
        }
示例#2
0
        public DeleteViewModel(INavigation nav)

        {
            _nav = nav;

            CurrentPage = DependencyInject <DetailView> .Get();

            OpenPage();
        }
示例#3
0
        public AddNewItem(INavigation nav)

        {
            _nav = nav;

            CurrentPage = DependencyInject <AddView> .Get();

            OpenPage();
        }
示例#4
0
        public EmployeeViewModel(INavigation nav, ObservableCollection <Employee> ctv)

        {
            ExecuteLoadEmployeeCommand();

            LoadItemsCommand = new Command(async() => await ExecuteLoadItemsCommand());
            _nav             = nav;

            _tapCommand = new Command <Object>(OnTapped);


            EmployeeList = ctv;
            CurrentPage  = DependencyInject <View.EmpExpanView> .Get();

            OpenPage();
        }
示例#5
0
        public DeleteViewModel(object o, INavigation nav)

        {
            emp = (Employee)o;
            Id  = emp.Id;

            Name = emp.Name;

            GSM = emp.GSM;

            _nav = nav;

            CurrentPage = DependencyInject <DetailViewRem> .Get();

            OpenPage();
        }
示例#6
0
        public EmployeeViewModel(INavigation nav)

        {
            ExecuteLoadEmployeeCommand();

            LoadItemsCommand = new Command(async() => await ExecuteLoadItemsCommand());

            _nav = nav;

            _tapCommand  = new Command <Object>(OnTapped);
            _tapCommandR = new Command <Object>(OnRemove);



            CurrentPage = DependencyInject <View.EmpExpanView> .Get();

            OpenPage();
        }