コード例 #1
0
ファイル: AutoSaveManager.cs プロジェクト: zz110/Tracing-UWP
        public async Task <StorageFile> InitializeTempInkFile()
        {
            var tempInkFile = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(TempInkFileName, CreationCollisionOption.OpenIfExists);

            TempInkStorageFile = tempInkFile;
            await InkOperator.ApplyInkFile(tempInkFile);

            return(TempInkStorageFile);
        }
コード例 #2
0
ファイル: AutoSaveManager.cs プロジェクト: zz110/Tracing-UWP
        public AutoSaveManager(InkOperator inkOperator)
        {
            InkOperator     = inkOperator;
            TempInkFileName = "Tracing_Temp.ink";

            DispatcherTimer = new DispatcherTimer {
                Interval = TimeSpan.FromMinutes(10)
            };
            DispatcherTimer.Tick += DispatcherTimerOnTick;
        }
コード例 #3
0
ファイル: AutoSaveManager.cs プロジェクト: zz110/Tracing-UWP
 public async Task LoadLastSession()
 {
     await InkOperator.ApplyInkFile(TempInkStorageFile);
 }
コード例 #4
0
ファイル: AutoSaveManager.cs プロジェクト: zz110/Tracing-UWP
 public async Task SaveTempSession()
 {
     await InkOperator.SaveInkToStorageFile(TempInkStorageFile);
 }