public StatusListControl(StatusesPresenter _presenter) { InitializeComponent(); // Insert code required on object creation below this point. presenter = _presenter; SetTextBoxFocus(); }
private void CreateStatusesPresenter(UserViewModel user) { var statusPresenter = new StatusesPresenter(user); //dołączamy do niego widok, jednocześnie przkazując mu referencję var statusView = new StatusListControl(statusPresenter); statusPresenter.SetView(statusView); statusPresenter.WorkDone += new EventHandler<ActionsEventArgs>(PresenterWorkDone); statusPresenter.Init(); _hostWindow.SwitchView(statusView); }