Esempio 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);
 }
Esempio n. 2
0
 public MainWindow()
 {
     DataContext = new MainViewModel(0.0);
     InitializeComponent();
 }