private void FilersPage_OnSelect(object sender, EventArgs e) { string t = ""; if (filersPage.LocationAddress != null) { t = filersPage.LocationAddress; } else { t = "Current location"; } switch (filersPage.AvailabilityMode) { case 1: t += " at Anytime"; break; case 2: t += " Today"; break; case 3: t += $" From {filersPage.AvailibilityFilter.DatesFrom[0].ToString("HH:mm")} To {filersPage.AvailibilityFilter.DatesTo[0].ToString("HH:mm")}"; break; } placeLabel.Text = t; OnSearchClick?.Invoke(sender, e); }
private void SearchButton_Clicked(object sender, EventArgs e) { OnSearchClick?.Invoke(sender, e); }
private void btnSearch_Click(object sender, System.Windows.RoutedEventArgs e) { OnSearchClick?.Invoke(); }