public int Parse()
{
int respond = 0;
try
{
respond = AnaliseInput();
}
catch (Exception e)
{
respond = -1;
System.Windows.Forms.MessageBox.Show(
ParsingErrorMessage + Environment.NewLine + e.Message,
Language.T("Data File Loading"),
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Error);
}
if (respond != 0)
{
System.Windows.Forms.MessageBox.Show(
ParsingErrorMessage,
Language.T("Data File Loading"),
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Exclamation);
return respond;
}
try
{
respond = ParseInput();
}
catch (Exception e)
{
respond = -1;
System.Windows.Forms.MessageBox.Show(
ParsingErrorMessage + Environment.NewLine + e.Message,
Language.T("Data File Loading"),
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Error);
return respond;
}
if (respond != 0)
{
System.Windows.Forms.MessageBox.Show(
ParsingErrorMessage,
Language.T("Data File Loading"),
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Exclamation);
return respond;
}
return respond;
}