private async void AutoSugBoxEmps_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args) { ProgressRingAutosuggestionLoad.IsActive = true; ProgressRingAutosuggestionLoad.Visibility = Visibility.Visible; string QueryItem = args.QueryText.ToString(); if (String.IsNullOrEmpty(QueryItem)) { await EmployeeSync.GetAllEmployeesAsnc(EmployeeCharacters, "All"); await LeaveTransactionGetPostPut.GetLeaveTransactionAsnc(LeaveTransactions, "All", "1"); Passwordresetframe.Visibility = Visibility.Collapsed; } else { await EmployeeSync.GetAutosuggestEmployeesAsnc(EmployeeCharacters, QueryItem); await LeaveTransactionGetPostPut.GetLeaveTransactionAsnc(LeaveTransactions, EmployeeCharacters[0].EmpId, "1"); Passwordresetframe.Visibility = Visibility.Visible; Passwordresetframe.Navigate(typeof(PasswordResetAdmin), EmployeeCharacters[0].EmpId); } ProgressRingAutosuggestionLoad.IsActive = false; ProgressRingAutosuggestionLoad.Visibility = Visibility.Collapsed; }
private async void EmployessListview_ItemClick(object sender, ItemClickEventArgs e) { var SelectedEmployee = (EmployeeMaster)e.ClickedItem; await LeaveTransactionGetPostPut.GetLeaveTransactionAsnc(LeaveTransactions, SelectedEmployee.EmpId.ToString(), "1"); Passwordresetframe.Visibility = Visibility.Visible; Passwordresetframe.Navigate(typeof(PasswordResetAdmin), SelectedEmployee._id.Oid.ToString()); }