HrckoV
Member
- Joined
- Oct 19, 2021
- Messages
- 7
- Programming Experience
- 10+
I'm using this code in another class library project.
I won't to call it from mainwindow to change time count in textbox.
I won't to call it from mainwindow to change time count in textbox.
C#:
public class AppTimer
{
public void AppTimeCount()
{
DispatcherTimer dispatcherTimer = new();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0, 5, 0);
dispatcherTimer.Start();
}
private void dispatcherTimer_Tick(object sender, EventArgs e)
{
// what to write in here?
}
}
Last edited by a moderator: