c# error when using the Database.cs files

Posted by Kumu on Stack Overflow See other posts from Stack Overflow or by Kumu
Published on 2010-04-23T20:55:09Z Indexed on 2010/04/23 21:03 UTC
Read the original article Hit count: 189

Filed under:

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.

© Stack Overflow or respective owner

Related posts about c#