public LoginViewModel(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <MainPage> .Get(); OpenPage(); }
public DeleteViewModel(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <DetailView> .Get(); OpenPage(); }
public AddNewItem(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <AddView> .Get(); OpenPage(); }
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(); }
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(); }
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(); }