// Token: 0x06000219 RID: 537 RVA: 0x0000A6AC File Offset: 0x000088AC
 private void GoToSettings()
 {
     LoggerExtensionMethods.LogDiagnostic <ImportViewModel>(this, "Video Trimmed", new Dictionary <string, object>
     {
         {
             "StartTime",
             this.StartTime
         },
         {
             "EndTime",
             this.EndTime
         },
         {
             "VideoTotalLength",
             this.project.VideoInfo.Duration
         },
         {
             "TrimmedLength",
             this.project.InputLength
         },
         {
             "RotationAmount",
             this.RotationAmount
         }
     }, "GoToSettings", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\ViewModels\\ImportViewModel.cs", 39);
     base.Navigation.Navigate("Settings", new object[]
     {
         this.project
     });
 }
        // Token: 0x06000175 RID: 373 RVA: 0x00006D90 File Offset: 0x00004F90
        public string GetNewWorkingDirectory()
        {
            string currentScratchDirectory = this.GetCurrentScratchDirectory();
            string text = Path.Combine(currentScratchDirectory, Path.GetRandomFileName());

            Directory.CreateDirectory(text);
            LoggerExtensionMethods.LogDiagnostic <ScratchManager>(this, "New Working Directory", null, "GetNewWorkingDirectory", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 95);
            return(text);
        }
        // Token: 0x06000176 RID: 374 RVA: 0x00006DD0 File Offset: 0x00004FD0
        public void InitializeScratchSpace()
        {
            string currentScratchDirectory = this.GetCurrentScratchDirectory();
            string path = Path.Combine(currentScratchDirectory, this.SessionIdFileName);

            this.DetectAndHandleUncleanShutdown();
            LoggerExtensionMethods.LogDiagnostic <ScratchManager>(this, "Initalising scratch", null, "InitializeScratchSpace", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 108);
            Directory.CreateDirectory(currentScratchDirectory);
            using (StreamWriter streamWriter = File.CreateText(path))
            {
                streamWriter.Write(this.telemetryClient.SessionID);
            }
        }
 // Token: 0x06000179 RID: 377 RVA: 0x00006F90 File Offset: 0x00005190
 private void TeardownScratchSpace(string scratchDir)
 {
     LoggerExtensionMethods.LogDiagnostic <ScratchManager>(this, "Tearing down scratch space", null, "TeardownScratchSpace", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 165);
     if (Directory.Exists(scratchDir))
     {
         try
         {
             Directory.Delete(scratchDir, true);
         }
         catch (Exception value)
         {
             LoggerExtensionMethods.LogError <ScratchManager>(this, "Couldn't tear down scratch space", new Dictionary <string, object>
             {
                 {
                     "Exception",
                     value
                 }
             }, "TeardownScratchSpace", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 175);
         }
     }
 }
        // Token: 0x0600017A RID: 378 RVA: 0x0000700C File Offset: 0x0000520C
        public void UpdateScratchRoot(string newRoot)
        {
            LoggerExtensionMethods.LogDiagnostic <ScratchManager>(this, "Attempting to change scratch root", new Dictionary <string, object>
            {
                {
                    "NewRoot",
                    newRoot
                }
            }, "UpdateScratchRoot", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 182);
            newRoot = this.tempPathProvider.RestoreEnvironmentVariables(newRoot);
            if (newRoot == this.ScratchRoot)
            {
                return;
            }
            string directory = this.tempPathProvider.ExpandEnvironmentVariables(newRoot);

            this.EnsureDirectoryExists(directory);
            this.CheckDirectoryIsWriteable(directory);
            this.TeardownScratchSpace();
            this.ScratchRoot = newRoot;
            this.InitializeScratchSpace();
        }
 // Token: 0x0600017D RID: 381 RVA: 0x00007174 File Offset: 0x00005374
 public void ResetScratchRoot()
 {
     LoggerExtensionMethods.LogDiagnostic <ScratchManager>(this, "Reset scratch root to default", null, "ResetScratchRoot", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\Model\\Scratch\\ScratchManager.cs", 237);
 }
 // Token: 0x060001AD RID: 429 RVA: 0x00007BD8 File Offset: 0x00005DD8
 public async Task <bool> CheckIfCanExit()
 {
     LoggerExtensionMethods.LogDiagnostic <MainWindowViewModel>(this, "Check if can exit", null, "CheckIfCanExit", "C:\\OxBuild\\30\\s\\hyperlapse_gui\\Hyperlapse\\Hyperlapse\\ViewModels\\MainWindowViewModel.cs", 47);
     return(!(await this.WindowOperationsViewModel.CloseProject()));
 }