예제 #1
0
 public static bool SelectContinueSession(Session previousSession)
 {
     Program.Log("A previous infinished session was found for : ");
     Program.Log("WoW Version : " + previousSession.WoWRepositoryName);
     Program.Log("Locale      : " + previousSession.Locale);
     Program.Log("OS          : " + previousSession.Os);
     Program.Log();
     Program.Log("Do you want to continue this session ? (y/n) :");
     return HandleUserYesNo();
 }
예제 #2
0
        private static void EntryPointResumeSession(Session previousSession)
        {
            CurrentSession = previousSession;

            IWoWRepository repository = RepositoriesManager.GetRepositoryByMfil(CurrentSession.MFil);
            ManifestFile manifest = ManifestFile.FromRepository(repository);

            CurrentSession.SaveSession();

            StartProcess(manifest);
        }
예제 #3
0
        private static void EntryPointNewSession()
        {
            IWoWRepository repository = UserInputs.SelectRepository();
            ManifestFile manifest = ManifestFile.FromRepository(repository);
            string locale = UserInputs.SelectLocale(manifest);
            string os = UserInputs.SelectOs();

            CurrentSession = new Session(repository.GetMFilName(), locale, os);
            CurrentSession.SaveSession();

            StartProcess(manifest);
        }