Ejemplo n.º 1
0
 // OnClosing - Dispose.
 private void RatingFilterApplied(object sender, TextChangedEventArgs e)
 {
     var ratingTxtBox = sender as TextBox;
     string rating = ratingTxtBox.Text;
     double ratingFilter = 0;
     double.TryParse(rating, out ratingFilter);
     DataContext = new MainViewModel(ratingFilter);
 }
Ejemplo n.º 2
0
 public MainWindow()
 {
     DataContext = new MainViewModel(0.0);
     InitializeComponent();
 }