/// <summary>Initializes a new instance of the <see cref="ButtonsPresenter"/> class.</summary> /// <param name="view">The view.</param> /// <param name="commands">The commands.</param> public ButtonsPresenter( IButtonView view, List <IButtonsCommand> commands) { this.view = view; view.SetCommands(commands); }
public Builder(IButtonView view) { ConfigureIocContainer(); ConnectButtonPresenterTo(view); ConnectMeAsModelObserver(); }
public ButtonController(IButtonView i_View, eCommandType i_Command) { r_View = i_View; r_View.SetEventListener(this); r_Command = CommandCommander.GetInstance().GetCommand(i_Command); r_Command.StatusChanged += handleStatusChange; }
/// <summary>Initializes a new instance of the <see cref="ButtonsPresenter"/> class.</summary> /// <param name="view">The view.</param> /// <param name="commands">The commands.</param> public ButtonsPresenter( IButtonView view, List<IButtonsCommand> commands) { this.view = view; view.SetCommands(commands); }
public void ConnectView(IButtonView buttonView) { _buttonView = buttonView; _buttonView.Clicked += ButtonClicked; }
private void ConnectButtonPresenterTo(IButtonView view) { var buttonPresenter = _container.Resolve<IButtonPresenter>(); buttonPresenter.ConnectView(view); }
public static void WriteButtonView(IButtonView button) { Log.Info("MouseState: " + button.State.ToString()); Log.Info("IsMouseOver: " + button.IsMouseOver); Log.Info("IsMouseDown: " + button.IsMouseDown); }