public async Task <StorageFile> InitializeTempInkFile() { var tempInkFile = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(TempInkFileName, CreationCollisionOption.OpenIfExists); TempInkStorageFile = tempInkFile; await InkOperator.ApplyInkFile(tempInkFile); return(TempInkStorageFile); }
public AutoSaveManager(InkOperator inkOperator) { InkOperator = inkOperator; TempInkFileName = "Tracing_Temp.ink"; DispatcherTimer = new DispatcherTimer { Interval = TimeSpan.FromMinutes(10) }; DispatcherTimer.Tick += DispatcherTimerOnTick; }
public async Task LoadLastSession() { await InkOperator.ApplyInkFile(TempInkStorageFile); }
public async Task SaveTempSession() { await InkOperator.SaveInkToStorageFile(TempInkStorageFile); }