Exemplo n.º 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());
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IFiler  filer  = new FileHandler();
            ISaver  saver  = (ISaver)filer;
            ILoader loader = (ILoader)filer;

            FilerNS.IFiler gameFiler = new FilerNS.Filer();

            FilerForm view = new FilerForm();

            //FileHandlerController controller = new FileHandlerController(saver, loader, filer, gameFiler, view);

            Application.Run(/*controller.Start()*/);
        }