예제 #1
0
 public AuthPresenter(IAuthView authView, AuthModel authModel, IDataBaseStorage dataBaseStorage)
 {
     _dataBaseStorage = dataBaseStorage;
     _authView = authView;
     _authView.onAuthClicked += onAuthPressed;
     _authModel = authModel;
     _dataBaseStorage = dataBaseStorage; 
 }
예제 #2
0
 public MainLogic(IWorkerView workerView,IAuthView authView, IDataBaseStorage dataBaseStorage)
 {
     _workerView = workerView;
     _authView = authView;
     _authModel = new AuthModel();
     _dataBaseStorage = dataBaseStorage;
     _authPresenter = new AuthPresenter(_authView, _authModel, _dataBaseStorage);
     _authModel.currentUserChanged += defineUser;
 }