Beispiel #1
0
        public MainLogin(DataBaseManager db)
        {
            InitializeComponent();
            DataBase = db;
            LoginTypeComboBox.SelectedIndex = 0;

            //Default
            serverTextBox.Text = "localhost";
            PassInputBox.Text = "admin";
            UserNameInputBox.Text = "test@email";
            LoginTypeComboBox.SelectedIndex = 1;
        }
Beispiel #2
0
        public MainDeptManagerApp(MainLogin lg, DataBaseManager dbm)
        {
            InitializeComponent();
            logForm = lg;
            Database = dbm;
            Database.ChangeConnectionUser(Database.ConnectedUser.UserType);

            SetUserStoreDept();

            RefreshDeptManagersList();
            RefreshTeamList();
        }