public EmployeeDetailViewModel (IMyNavigationService navigationService) { var database = new EmployeeDataBase(); SaveNoteCommand = new Command (() => { database.InsertOrUpdateNote(new employee(EmployeeName,EmployeePosition,EmployeeAvailableTime.ToString())); navigationService.GoBack(); }); }
public void OnAppearing(){ var database = new EmployeeDataBase (); EmployeeList = new ObservableCollection<employee> (database.GetAll ()); }