using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace DBS1 { /// /// Interaktionslogik für Navigationbar.xaml /// public partial class Navigationbar : UserControl { private INavigatorbar databaseparent; public Navigationbar() { InitializeComponent(); } public void setDatabaseParent(INavigatorbar databaseparent) { this.databaseparent = databaseparent; } public void setPosition(long position) { tRow.Text = position.ToString(); } public void setCount(int count) { lRow.Content = "von {" + count + "}"; } private void bnFirst_Click(object sender, RoutedEventArgs e) { databaseparent.setFirst(); } private void bnPrev_Click(object sender, RoutedEventArgs e) { databaseparent.setPrev(); } private void bnNext_Click(object sender, RoutedEventArgs e) { databaseparent.setNext(); } private void bnLast_Click(object sender, RoutedEventArgs e) { databaseparent.setLast(); } private void bnPlus_Click(object sender, RoutedEventArgs e) { databaseparent.setPlus(); } private void bnDelete_Click(object sender, RoutedEventArgs e) { databaseparent.setDelete(); } private void bnCancel_Click(object sender, RoutedEventArgs e) { databaseparent.setCancel(); } private void tFilter_TextChanged(object sender, TextChangedEventArgs e) { databaseparent.setFilter(tFilter.Text.Trim()); } } }