Exemple #1
0
        //protected IFiler Filer;

        public FileHandlerController(ISaver saver, ILoader loader, IFiler filer, FilerNS.IFiler gameFiler, GameNS.Game game, FilerForm view)
        {
            Saver             = saver;
            Loader            = loader;
            View              = view;
            theGame           = game;
            Filer             = filer;
            FilerGame         = gameFiler;
            FileHandled       = new FileEventHandler(OnFileEvent);
            View.FileHandled += FileHandled;
            Filer.CreateSaveFolder();
            View.setDirectory(Filer.getSaveLocation());
        }