Esempio n. 1
0
 private void AddressBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         AddressSubmitted?.Invoke(sender, SearchBox.Text);
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     AddressSubmitted?.Invoke(sender, AddressBox.Text);
 }