Exemple #1
0
 public MainWindow(AuthWindow previousWindow)
 {
     InitializeComponent();
     Database            = ControllerDB.Instance;
     Manager             = HttpManager.Instance;
     this.previousWindow = previousWindow;
 }
Exemple #2
0
 public AddCopyWindow(CopyListWindow previousWindow, string isbn)
 {
     InitializeComponent();
     this.previousWindow = previousWindow;
     this.isbn           = isbn;
     database            = ControllerDB.Instance;
     manager             = HttpManager.Instance;
 }
        public BooksListWindow(MainWindow previousForm)
        {
            InitializeComponent();

            database          = ControllerDB.Instance;
            this.previousForm = previousForm;

            sortingTypeComboBox.SelectedIndex = 0;
        }
        public CheckoutListWindow(MainUserWindow previousWindow)
        {
            this.previousWindow = previousWindow;
            database            = ControllerDB.Instance;

            InitializeComponent();

            PopulateTable();
        }
        public CopyListWindow(BooksListWindow previousForm, string isbn)
        {
            InitializeComponent();

            this.isbn         = isbn;
            this.previousForm = previousForm;
            database          = ControllerDB.Instance;

            PopulateTable();
        }
Exemple #6
0
        public MainUserWindow(AuthWindow previousWindow, int userId)
        {
            InitializeComponent();

            this.userId         = userId;
            this.previousWindow = previousWindow;
            database            = ControllerDB.Instance;

            FillSessionLabel();

            PopulateTable();
        }
Exemple #7
0
        public AuthWindow()
        {
            InitializeComponent();

            Database = ControllerDB.Instance;
            if (Properties.Settings.Default.PreviousID == 0)
            {
                UserIdPlaceholderText();
            }
            else
            {
                UserIdBox.Text = Convert.ToString(Properties.Settings.Default.PreviousID);
            }

            PasswordPlaceholderText();
        }
        public RegistrationWindow(AuthWindow previousWindow)
        {
            InitializeComponent();

            this.previousWindow = previousWindow;
            database            = ControllerDB.Instance;

            manager = HttpManager.Instance;

            LastNamePlaceholderText();
            PasswordPlaceholderText();
            ConfirmPasswordPlaceholderText();

            LockCreateAccountButton();
            regex = Constants.Regex;
        }
Exemple #9
0
 public ClassBiz()
 {
     CDB = new ControllerDB();
     GetAllCustomersFromDB();
 }