public MainWindow() { InitializeComponent(); liveChartsController = new LiveChartsController(); barcodeStickerController = new BarcodeStickerController(); // Bind data to the UI DataContext = liveChartsController; }
public MainPage() { this.InitializeComponent(); this.dt = new DispatcherTimer(); this.dt.Interval = TimeSpan.FromSeconds(10); this.dt.Tick += Dt_Tick; this.dt.Start(); lcc = new LiveChartsController(); this.DataContext = lcc; }