Example #1
0
        private void ShowDoDetails(IIerarchicalContainer container)
        {
            try
            {
                ScritturePresenter presenter;
                if (container != null)
                {
                    if (container.SelectedNode == null)
                    {
                        return;
                    }
                    presenter = new ScritturePresenter(_view.ScrittureFormView, _sericeBilancio, container.SelectedNode.Tag.ToString());
                }
                else
                {
                    presenter = new ScritturePresenter(_view.ScrittureFormView, _sericeBilancio, "");
                }

                presenter.InitializeForm();

                presenter.StartDialog();

                RefreshInterface();
            }
            catch (Exception ex)
            {
                _view.GetSimpleMessageNotificator().Show(ex.Message, "Errore", MessageType.Error);
            }
        }
Example #2
0
 public ImportoContoPresenter(IFrmContoView view, BilancioService service, string idConto, ScritturePresenter viewSincronizer)
 {
     _viewSincronizer = viewSincronizer;
     _bilancioService = service;
     _view            = view;
     _view.SetPresenter(this);
     _idConto = idConto;
 }