public bool LoadAssemblyFrom(string AssemblyFileName)
{
try
{
Assembly.LoadFrom(AssemblyFileName);
}
catch (Exception ex)
{
if (ex.InnerException != null)
{
LastException = ex.InnerException;
SetError(ex.InnerException.Message);
}
else
{
LastException = ex;
SetError(ex.Message);
}
return false;
}
return true;
}