Пример #1
0
        public MainUserWindow(AuthWindow previousWindow, int userId)
        {
            InitializeComponent();

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

            FillSessionLabel();

            PopulateTable();
        }
Пример #2
0
        public RegistrationWindow(AuthWindow previousWindow)
        {
            InitializeComponent();

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

            manager = HttpManager.Instance;

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

            LockCreateAccountButton();
            regex = Constants.Regex;
        }