private void fileTypeRotator()
{
bool changed = false;
if (_currentFileType == null)
{
if (WorkingDefinition.IncludeDocTypeDOCX) { _currentFileType = "docx"; return; }
if (WorkingDefinition.IncludeDocTypeXLSX) {_currentFileType = "xlsx"; return;}
if (WorkingDefinition.IncludeDocTypePDF){ _currentFileType = "pdf"; return;}
if (WorkingDefinition.IncludeDocTypeImages) { _currentFileType = "png"; return; }
return;
}
if( _currentFileType == "docx" )
{
if (WorkingDefinition.IncludeDocTypeXLSX) {_currentFileType = "xlsx"; return;}
if (WorkingDefinition.IncludeDocTypePDF) {_currentFileType = "pdf"; return;}
if (WorkingDefinition.IncludeDocTypeImages) { _currentFileType = "png"; return; }
return;
}
if (_currentFileType == "xlsx")
{
if (WorkingDefinition.IncludeDocTypePDF) {_currentFileType = "pdf"; return;}
if (WorkingDefinition.IncludeDocTypeImages) { _currentFileType = "png"; return; }
if (WorkingDefinition.IncludeDocTypeDOCX) {_currentFileType = "docx"; return;}
return;
}
if (_currentFileType == "pdf")
{
if (WorkingDefinition.IncludeDocTypeImages) { _currentFileType = "png"; return; }
if (WorkingDefinition.IncludeDocTypeDOCX) {_currentFileType = "docx"; return;}
if (WorkingDefinition.IncludeDocTypeXLSX){ _currentFileType = "xlsx"; return;}
return;
}
if( _currentFileType == "png" )
{
if (WorkingDefinition.IncludeDocTypeDOCX) {_currentFileType = "docx"; return;}
if (WorkingDefinition.IncludeDocTypeXLSX){ _currentFileType = "xlsx"; return;}
if (WorkingDefinition.IncludeDocTypePDF) { _currentFileType = "pdf"; return; }
}
}