Hey all I am getting the compiler Identifier Expected on the following code.
public partial class Form1 : Form
{
private const int MaxFiles = 10;
private SourceFile m_sourceFiles(MaxFiles);
private int m_files = 0;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
listOfFiles.DataSource = m_sourceFiles;
}
private void cmdBrowse_Click(object sender, EventArgs e)
{
try
{
openSourceFile.Filter = "ASP, ASP.NET, JavaScript files (*.asp, *.aspx, *.js)|*.asp, *.aspx,*.js)";
DialogResult result = new DialogResult();
if (result == DialogResult.OK)
{
SourceFile aFile = new SourceFile(openSourceFile.FileName);
m_sourceFiles(m_files) = aFile;
m_files += 1;
if (m_files == m_sourceFiles.Length)
{
m_files = m_sourceFiles.Length - 1;
}
}
listOfFiles.Refresh();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
If any one could help it would be greatly appreciated.