c# error when using the Database.cs files
- by Kumu
Inconsistent accessibility: parameter type 'FoolballLeague.FootballLeagueDatabase' is less accessible than method 'FoolballLeague.MainMenu.MainMenu(FoolballLeague.FootballLeagueDatabase)'
C:\Users\achini\Desktop\FootballLeague\FootballLeague\MainMenu.cs
I have got this error when I insert this part to the code
//public MainMenu(FootballLeagueDatabase footballLeagueDatabaseIn)
//{
//InitializeComponent();
//footballLeagueDatabase = footballLeagueDatabaseIn;
//}
The whole code of the first part is as following,
But I dont know what do I need to do to sort out this error.
public partial class MainMenu : Form
{
FootballLeagueDatabase footballLeagueDatabase;
Game game;
Login login;
public MainMenu()
{
InitializeComponent();
changePanel(1);
}
//public MainMenu(FootballLeagueDatabase footballLeagueDatabaseIn)
//{
//InitializeComponent();
//footballLeagueDatabase = footballLeagueDatabaseIn;
//}
If you have any idea please let me know, I need this part to the system.