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