예제 #1
0
        private void SearchCity(object param)
        {
            ICityListPresenter presenter = this._container.Resolve <ICityListPresenter>("ICityListPresenter");

            presenter.CloseViewRequested += delegate(object sender, EventArgs eventArgs)
            {
                if (eventArgs == null)
                {
                    return;
                }

                if ((eventArgs is CloseViewEventArgs) && ((eventArgs as CloseViewEventArgs).CloseViewOption == CloseViewType.Ok))
                {
                    this.Cidade = presenter.Cidade;
                }
            };

            IBreadCrumbPresenter breadCrumb = this._container.Resolve <IBreadCrumbPresenter>();

            if (breadCrumb != null)
            {
                breadCrumb.AddCrumb("Cidade", presenter);
            }
        }
예제 #2
0
 public void SetPresenter(ICityListPresenter presenter)
 {
     DataContext = presenter;
 }