private void AddressBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { AddressSubmitted?.Invoke(sender, SearchBox.Text); } }
private void Button_Click_2(object sender, RoutedEventArgs e) { var path = AddressBox.Text; var levels = CachePath.GetDirectoryLevelCount(path); if (levels >= 1) { path = CachePath.GetDirectoryLevel(path, levels - 1); } AddressBox.Text = path; AddressSubmitted?.Invoke(sender, AddressBox.Text); }
private void Button_Click(object sender, RoutedEventArgs e) { AddressSubmitted?.Invoke(sender, AddressBox.Text); }