Example #1
0
 private static void GetAuthUser()
 {
     var auth = new AuthenticationForm();
     auth.ShowDialog();
     if (auth.DialogResult==DialogResult.OK)
     {
         AuthUser = auth.Presenter.User;
     }
     else
     {
         System.Environment.Exit(0);
     }
 }
 public AuthenticationPresenter(AuthenticationForm view)
 {
     this.model = new UserDao();
     this.view = view;
     this.view.OkButtonClick += new EventHandler(OkButtonClickHendler);
 }