private void EditLocationButton_Click(object sender, RoutedEventArgs e) { Button editLocationButton = sender as Button; LOCATION editLocation = editLocationButton.Tag as LOCATION; HomeScreen.GetHomeScreenInstance().GetDialogs("LocationAddDialog", editLocation, "Xem/Chỉnh sửa điểm dừng"); }
private void EditMemberButton_Click(object sender, RoutedEventArgs e) { Button editMemberButton = sender as Button; MEMBER editMember = editMemberButton.Tag as MEMBER; HomeScreen.GetHomeScreenInstance().GetDialogs("MemberAddDialog", editMember, "Xem/Chỉnh sửa Thành viên"); }
private void AddTripButton_Click(object sender, RoutedEventArgs e) { bool AddOk = StepThreeViewModel.isAddOk(); if (AddOk) { HomeScreen.RestoreNavigationItem(); HomeScreen.GetHomeScreenInstance().setVisibilityAddButton(Visibility.Visible); } }
public void searchLocation_ByName() { string request = HomeScreen.GetHomeScreenInstance().SearchTextBox.Text; //MessageBox.Show("Chay duoc roi"); List <LOCATION> locationList; if (request.Length <= 0) { locationList = (LOCATIONS).ToList(); //this.ToShowItems = new ObservableCollection<TRIP>(all); } else { //search by TITLE var requestText = convertUnicode.convertToUnSign(request.Trim().ToLower()); locationList = (LOCATIONS.AsEnumerable().Where(loca => convertUnicode.convertToUnSign(loca.NAME.Trim().ToLower()).Contains(requestText))).ToList(); //MessageBox.Show(b[0].TITTLE); //this.ToShowItems = new ObservableCollection<TRIP>(tripList); } searchLOCATIONS = new ObservableCollection <LOCATION>(locationList); CalculatePagingInfo(Paging.RowsPerPage, searchLOCATIONS.Count); DisplayObjects(); }
private void LocationAddButton_Click(object sender, RoutedEventArgs e) { HomeScreen.GetHomeScreenInstance().GetDialogs("LocationAddDialog", new LOCATION(), "THÊM ĐIỂM DỪNG"); }
private void BackButton_Click(object sender, RoutedEventArgs e) { HomeScreen.GetHomeScreenInstance().AddButton.Visibility = Visibility.Visible; }
public TripDetailsControl() { InitializeComponent(); HomeScreen.GetHomeScreenInstance().AddButton.Visibility = Visibility.Collapsed; }
private void BackToHomeScreenAction() { HomeScreen.SetNewContentControl(new TripsCollectionViewModel()); HomeScreen.GetHomeScreenInstance().AddButton.Visibility = Visibility.Visible; }
private void MemberAddButton_Click(object sender, RoutedEventArgs e) { HomeScreen.GetHomeScreenInstance().GetDialogs("MemberAddDialog", new MEMBER(), "THÊM THÀNH VIÊN"); }