M
Maziar Aflatoun
Hi everyone,
I'm writing an application that needs to quit when it encouters an error.
However, Application.Exit() doesn't do anything here. Does anyone know why?
public bool timerenabled
{
get
{
bool timerenabled;
ManageXML XMLSettingFile = new ManageXML();
try
{
timerenabled =
Convert.ToBoolean(XMLSettingFile.ReadElementValue("timerenabled"));
return timerenabled;
}
catch (System.Xml.XmlException eXML)
{
timerMonitor.Stop();
MessageBox.Show("Please check your setting.xml file and rerun the
application. Application now closing.\r\n" + eXML.Message );
Application.Exit();
}
return false;
}
}
Thank you
Maziar A.
I'm writing an application that needs to quit when it encouters an error.
However, Application.Exit() doesn't do anything here. Does anyone know why?
public bool timerenabled
{
get
{
bool timerenabled;
ManageXML XMLSettingFile = new ManageXML();
try
{
timerenabled =
Convert.ToBoolean(XMLSettingFile.ReadElementValue("timerenabled"));
return timerenabled;
}
catch (System.Xml.XmlException eXML)
{
timerMonitor.Stop();
MessageBox.Show("Please check your setting.xml file and rerun the
application. Application now closing.\r\n" + eXML.Message );
Application.Exit();
}
return false;
}
}
Thank you
Maziar A.