示例#1
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (var form = new FaceRecognitionLogin())
     {
         Hide();
         form.ShowDialog();
         Show();
     }
 }
示例#2
0
        public Opening(TakenBookPresenter takenBookPresenter, ILibraryData libraryData,
                       IInputValidator validator, IExceptionLogger exceptionLogger, UserPresenter userPresenter)
        {
            InitializeComponent();

            _takenBookPresenter       = takenBookPresenter;
            _libraryData              = libraryData;
            _validator                = validator;
            _exceptionLogger          = exceptionLogger;
            _userPresenter            = userPresenter;
            _faceRecognitionLoginForm = new FaceRecognitionLogin(takenBookPresenter, libraryData, userPresenter, _exceptionLogger);
            _registrationForm         = new Registration(_libraryData, _validator);
            _loginForm                = new Login(_takenBookPresenter, _libraryData, _userPresenter, _exceptionLogger);
        }