I get an accessibility error
Inconsistent accessibility: parameter type ‘FoolballLeague.FootballLeagueDatabase’ is less accessible than method ‘FoolballLeague.MainMenu.MainMenu(FoolballLeague.FootballLeagueDatabase)’
C:\Users\achini\Desktop\FootballLeague\FootballLeague\MainMenu.cs
//public MainMenu(FootballLeagueDatabase footballLeagueDatabaseIn)
//{
//InitializeComponent();
//footballLeagueDatabase = footballLeagueDatabaseIn;
//}
When I run this code
public partial class MainMenu : Form
{
FootballLeagueDatabase footballLeagueDatabase;
Game game;
Login login;
public MainMenu()
{
InitializeComponent();
changePanel(1);
}
public MainMenu(FootballLeagueDatabase footballLeagueDatabaseIn)
{
InitializeComponent();
footballLeagueDatabase = footballLeagueDatabaseIn;
}
}
And I don’t know why. What am I missing? What does accessibility mean?
Make the definition of FootballLeagueDatabase public where it is declared, that should help.