Esempio n. 1
0
        public InventoryPresenter(IInventory view, IGUIPresenter gui)
        {
            this._view     = view;
            this._gui      = gui;
            view.Presenter = this;

            view.LureDoubleClick           += View_LureDoubleClick;
            view.LureSelectedIndexChanged  += View_LureSelectedIndexChanged;
            view.ReelDoubleClick           += View_ReelDoubleClick;
            view.ReelSelectedIndexChanged  += View_ReelSelectedIndexChanged;
            view.RoadDoubleClick           += View_RoadDoubleClick;
            view.RoadSelectedIndexChanged  += View_RoadSelectedIndexChanged;
            view.FLineDoubleClick          += View_FLineDoubleClick;
            view.FLineSelectedIndexChanged += View_FLineSelectedIndexChanged;
            view.CloseButtonClick          += View_CloseButtonClick;
            view.FetchButtonClick          += View_FetchButtonClick;
            view.AssemblyDoubleClick       += View_AssemblyDoubleClick;
            view.MakeOutClick             += View_MakeOutClick;
            view.RoadButtonsClick         += RoadButtonClick;
            view.BaitDoubleClick          += View_BaitDoubleClick;
            view.BaitSelectedIndexChanged += View_BaitSelectedIndexChanged;
            view.HookDoubleClick          += View_HookDoubleClick;
            view.HookSelectedIndex        += View_HookSelectedIndex;

            view.Open();
        }
Esempio n. 2
0
 public FPondPresenter(IFPond view, IGUIPresenter gui)
 {
     this.view                  = view;
     view.Presenter             = this;
     this.gui                   = gui;
     view.SellButtonClick      += View_SellButtonClick;
     view.SelectedIndexChanged += View_SelectedIndexChanged;
 }
Esempio n. 3
0
 public SelectorPresenter(ISelector <T> view, IGUIPresenter gui)
 {
     _view                      = view;
     _gui                       = gui;
     view.Presenter             = this;
     view.LureListDoubleClick  += View_LureListDoubleClick;
     view.LureListIndexChanged += View_LureListIndexChanged;
 }
Esempio n. 4
0
        public LVLPresenter(IGameForm view, IGUIPresenter v, LvlImplementation curLVL)
        {
            this.CurLvl = curLVL;
            curLVL.AddFishes();
            curLVL.SetDeep();
            this.view         = view;
            this.gui          = v;
            view.LVLPresenter = this;
            view.BackImage    = CurLvl.Image;
            _sp     = new SoundPlayer();
            _drawer = new Drawer();

            view.RepaintScreen       += View_RepaintScreen;
            view.FormMouseClick      += View_MouseLeftClick;
            view.KeyDOWN             += View_KeyDOWN;
            view.KeyUP               += View_KeyUP;
            view.MainTimerTick       += View_MainTimerTick;
            view.FormClose           += View_FormClose;
            view.DecSacietyTimerTick += View_DecSacietyTimerTick;
        }
Esempio n. 5
0
 public GUIPresenter(IGUIPresenter view)
 {
     this._view = view;
 }