🎨
BUT INFO / C# / Embarqué
  • Introduction
  • DLL HomeIO
  • Premier exemple pas à pas
  • Premier exemple (en WPF)
  • Gestion des volets
  • Gestion de la porte de garage
  • Mise en place d'une supervision
  • Scénarios à intégrer
  • Astuces WPF
  • Enquête
Powered by GitBook
On this page

Was this helpful?

Astuces WPF

Timer

private void Button_Click(object sender, RoutedEventArgs e)
{
    System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
    dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
    dispatcherTimer.Interval = TimeSpan.FromMilliseconds(20);;
    dispatcherTimer.Start();
}
private void dispatcherTimer_Tick(object sender, EventArgs e)
{
    this.runCycleApi();
}
PreviousScénarios à intégrerNextEnquête

Last updated 5 years ago

Was this helpful?