private void MoveOldConfig()
 {
     try
     {
         string firstOldName = OldNames.FirstOrDefault(File.Exists);
         if (firstOldName != null && !firstOldName.IsEmpty())
         {
             EnsureParentDirectory();
             File.Move(firstOldName, SaveName);
         }
         RemoveOldConfig();
     }
     catch (Exception e)
     {
         Utility.DisplayMessage(e.ToString());
         Console.WriteLine(e);
     }
 }
Ejemplo n.º 2
0
 private void MoveOldConfig()
 {
     try
     {
         string firstOldName = OldNames.FirstOrDefault(File.Exists);
         if (firstOldName != null && !firstOldName.IsEmpty())
         {
             Utility.DisplayLocalizedText("str_rts_camera_rename_old_config");
             EnsureSaveDirectory();
             File.Move(firstOldName, SaveName);
         }
         RemoveOldConfig();
     }
     catch (Exception e)
     {
         Utility.DisplayMessage(e.ToString());
         Console.WriteLine(e);
     }
 }