public TipOfTheDayWindow(TipCalculator tipCalculator) { InitializeComponent(); Owner = System.Windows.Application.Current.MainWindow; _tipViewModel = new TipViewModel(); this.DataContext = _tipViewModel; _tipCalculator = tipCalculator; _tipHistoryManager = tipCalculator.TipHistoryManager; _tipManager = tipCalculator.TipManager; PopulateDefaultImages(); }
public TipOfTheDayWindow(TipCalculator tipCalculator) { InitializeComponent(); Owner = Application.Current.MainWindow; _tipViewModel = new TipViewModel(); this.DataContext = _tipViewModel; _tipCalculator = tipCalculator; _tipHistoryManager = tipCalculator.TipHistoryManager; _tipManager = tipCalculator.TipManager; // Initialize UI InitializeUIComponents(); }