Ejemplo n.º 1
0
 public RegisterForm()
 {
     InitializeComponent();
     rController = Controller.Instance;
     cbUserType.Items.Clear();
     cbUserType.Items.Add(Controller.UT_STAFF);
     cbUserType.Items.Add(Controller.UT_STUDENT);
     cbUserType.Text = Controller.UT_STUDENT;
 }
Ejemplo n.º 2
0
 public LoginForm()
 {
     InitializeComponent();
     rController = Controller.Instance;
     this.cbUserType.Items.Add(Controller.UT_USER);
     this.cbUserType.Items.Add(Controller.UT_LIBRARIAN);
     this.cbUserType.Items.Add(Controller.UT_MANAGER);
     this.cbUserType.Text = Controller.UT_USER;
 }
Ejemplo n.º 3
0
 public MainForm()
 {
     InitializeComponent();
     rController = Controller.Instance;
     rLoginForm = new LoginForm();
     rLoginForm.LoginUpdated += new LoginForm.LoginUpdateEventHandler(LoginForm_Closed);
     rRegisterForm = new RegisterForm();
     rBookForm = new BookForm();
     rSearchForm = new SearchForm();
     rSearchForm.sendButtonPressed += new SearchForm.SearchFormSendButtonHandler(setCopyNumToIssueBookForm);
     rIssueBookForm = new IssueBookForm();
     rIssueBookForm.IssueBookSearchButtonClicked += new IssueBookForm.IssueBookUpdateEventHandler(OpenSearchForm);
     rIssueBookForm.UpdateSearchForm += new IssueBookForm.IssueBookUpdateEventHandler(IssueBookFormUpdated);
     rReturnBookForm = new ReturnBookForm();
     rReportForm = new ReportForm();
     rManageUserForm = new ManageUserForm();
 }