Error 2 Inconsistent accessibility: parameter type 'SmartBackup.SmartBackupClass' is less accessible than method 'SmartBackup.BackupConfigurationForm.SmartBackupLoad(SmartBackup.SmartBackupClass)' C:\Documents and Settings\Mantas\My Documents\Visual Studio 2008\Projects\SmartBackup\SmartBackup\BackupConfigurationForm.cs 19 21 SmartBackup
Hi all, I was just wondering what the above error message means in laymans terms?
It relates to this code:
namespace SmartBackup
{
public partial class BackupConfigurationForm : Form
{
private SmartBackupClass smartBackup;
public BackupConfigurationForm()
{
InitializeComponent();
}
public void SmartBackupLoad(SmartBackupClass smartBackupLoaded)
{
this.smartBackup = smartBackupLoaded;
}
private void BackupConfigurationForm_Load(object sender, EventArgs e)
{
}
}
}
'SmartBackupClass' is a class, it has a reference to BackupConfigurationForm
private BackupConfigurationForm backupConfigurationForm;
backupConfigurationForm is created with the function:
public void BackupConfigurationButton()
{
this.backupConfigurationForm = new BackupConfigurationForm();
this.backupConfigurationForm.Show();
this.backupConfigurationForm.LoadSmartBackup(this);
}