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