Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }