public SettingsDialog(UserProvider.UserDTO loggedUser) { InitializeComponent(); this.loggedUser = loggedUser; this.userAccounts = loggedUser.GetAllUserAccounts(); this.sharedUserAccounts = loggedUser.GetAllSharedUserAccounts(); dbSetingDialog = new DBSettingDialog(loggedUser, userAccounts, sharedUserAccounts); trelloSettingDialog = new TrelloSettingDialog(loggedUser, userAccounts, sharedUserAccounts); gsSettingDialog = new GoogleSheetsSettingDialog(loggedUser, userAccounts, sharedUserAccounts); excelSettingsDialog = new ExcelSettingsDialog(loggedUser, userAccounts, sharedUserAccounts); }