public SendReceiver(ChorusSystem chorusSystem, Func<Form> getFormWithContextForInvokingErrorDialogs )
{
_getFormWithContextForInvokingErrorDialogs = getFormWithContextForInvokingErrorDialogs;
//Guard.AgainstNull(formWithContextForInvokingErrorDialogs, "formWithContextForInvokingErrorDialogs");
//_formWithContextForInvokingErrorDialogs = formWithContextForInvokingErrorDialogs;
//we don't do chorus on our source tree
SendReceiveDisabled = !Settings.Default.ShowSendReceive || !chorusSystem.DidLoadUpCorrectly || chorusSystem.ProjectFolderConfiguration.FolderPath.ToLowerInvariant().Contains("distfiles");
if (!SendReceiveDisabled)
{
_chorusSystem = chorusSystem;
BloomChorusRules.AddFileInfoToFolderConfiguration(_chorusSystem.ProjectFolderConfiguration);
}
}