DispatcherTimer AutoSaveTimer;
TimeSpan
auto_save_increment = new TimeSpan(0, 0, 10);
// time in between saves.
{ //
AutoSaveTimer setup
AutoSaveTimer = new System.Windows.Threading.DispatcherTimer();
AutoSaveTimer.Tick += new EventHandler(AutoSaverTimer_Tick);
AutoSaveTimer.Interval = auto_save_increment;
AutoSaveTimer.Start();
}
// Method to perform autosave work
private void
AutoSaverTimer_Tick(object sender, EventArgs e)
{
}
No comments:
Post a Comment