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; using Aitex.Core.UI.MVVM; using Triton160.UI.ViewModel; namespace Aitex.Triton160.UI.Views { /// /// Interaction logic for EventView.xaml /// public partial class JetEventView : UserControl { public JetEventView() { InitializeComponent(); this.DataContext = new JetEventViewModel(); this.IsVisibleChanged += JetEventView_IsVisibleChanged; } void JetEventView_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { (this.DataContext as TimerViewModelBase).EnableTimer(this.IsVisible); } } }