private IOutlookInspector createOutlookInspector()
{
int version = -1;
IOutlookInspector inspector;
if (IsOutlookInstalled())
{
version = getOutlookVersion();
}
switch (version)
{
case 14: // Outlook 2010
inspector = new OutlookInspector2010();
break;
default:
inspector = new DefaultOutlookInspector();
break;
}
return inspector;
}