//public ICommand SubmitCommand //{ protected set; get; } public LoginViewModel(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <MainPage> .Get(); OpenPage(); }
public UpadateItemViewModel(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <Page2> .Get(); OpenPage(); }
public AddNewItem(INavigation nav) { _nav = nav; CurrentPage = DependencyInject <AddView> .Get(); OpenPage(); }
public ContactViewModel(INavigation _nav) { Navigation = _nav;; _tapCommand = new Command <Object>(OnTapped); DependencyInject <View.Page1> .Get(); OpenPage(); }
public ContactViewModel(INavigation nav, ObservableCollection <Employee> ctv) { _nav = nav; _tapCommand = new Command <Object>(OnTapped); _RemoveCommand = new Command <Object>(OnRemove); ContactList = ctv; CurrentPage = DependencyInject <View.Page1> .Get(); OpenPage(); }
//public INavigation Navigation //{ // get { return navigation; } // set { navigation = value; } //} #endregion #region Constructor with parameters public ContactViewModel(INavigation nav) { _nav = nav; ; _tapCommand = new Command <Object>(OnTapped); _RemoveCommand = new Command <Object>(OnRemove); CurrentPage = DependencyInject <View.Page1> .Get(); OpenPage(); }
public UpadateItemViewModel(Employee emp, INavigation nav) { //emp._name = name; //emp._gsm = gsm; gsm = emp._gsm; _nav = nav; CurrentPage = DependencyInject <Page2> .Get(); OpenPage(); }