private void SetUtente() { CreaSchedaAutomaticaPresenter.GetInstance().Utente = _utente; CreaSchedaManualePresenter.GetInstance().Utente = _utente; ProfiloPresenter.GetInstance().Utente = _utente; ProgressiPresenter.GetInstance().Utente = _utente; SchermataPrincipalePresenter.GetInstance().Utente = _utente; }
private void CreatePresenters() { UserControl view; view = ViewFactory.GetView("CreaSchedaAutomaticaView"); CreaSchedaAutomaticaPresenter.Create(_mpm, (CreaSchedaAutomaticaView)view, _gestorePianiAllenamento); view = ViewFactory.GetView("SchermataPrincipaleView"); SchermataPrincipalePresenter.Create(_mpm, (SchermataPrincipaleView)view); view = ViewFactory.GetView("CreaSchedaManualeView"); CreaSchedaManualePresenter.Create(_mpm, (CreaSchedaManualeView)view); view = ViewFactory.GetView("ProgressiView"); ProgressiPresenter.Create(_mpm, (ProgressiView)view, _gestorePianiAllenamento); view = ViewFactory.GetView("ProfiloView"); ProfiloPresenter.Create(_mpm, (ProfiloView)view); view = ViewFactory.GetView("VideoView"); VideoPresenter.Create(_mpm, (VideoView)view); }