public MainSpellsLibraryPresenter(
     IMainSpellsLibraryView view,
     ISpellsLibraryService libraryService,
     IApplicationController controller)
     : base(view, libraryService, controller)
 {
 }
Example #2
0
        public SpellBookPresenter(ISpellBookView view, IApplicationController controller, ISpellsLibraryService spellsLibraryService)
        {
            this.view                 = view;
            this.controller           = controller;
            this.spellsLibraryService = spellsLibraryService;

            this.view.Exit            += View_Exit;
            this.view.SaveToLibrary   += View_SaveToLibrary;
            this.view.RemoveSpell     += View_RemoveSpell;
            this.view.CastSpell       += View_CastSpell;
            this.view.ScribeSpell     += View_ScribeSpell;
            this.view.EditSpell       += View_EditSpell;
            this.view.LoadFromLibrary += View_LoadFromLibrary;
        }
Example #3
0
        protected SpellLibraryPresenterBase(ISpellLibraryView view, ISpellsLibraryService libraryService, IApplicationController controller)
        {
            View = view;
            this.libraryService = libraryService;
            this.controller     = controller;

            View.Spells = libraryService.ReadSpells();

            View.Exit += View_Exit;

            View.RemoveSpell += View_RemoveSpell;
            View.EditSpell   += View_EditSpell;

            View.RefreshSpells(false);
        }
Example #4
0
 public LoadSpellPresenter(ILoadSpellView view, ISpellsLibraryService libraryService, IApplicationController controller)
     : base(view, libraryService, controller)
 {
     view.Ok += View_Ok;
 }