Пример #1
0
 public AdminPresenter(IWorkerView workerView, AdminModel userModel)
 {
     _userModel = userModel;
     _workerView = workerView;
     _workerView.createAdminView();
     workerView.show();
 }
Пример #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;
 }
Пример #3
0
 public WorkerPresenter(IWorkerView workerView)
 {
     _workerView = workerView;
 }