AddFileInfoToFolderConfiguration() public static method

public static AddFileInfoToFolderConfiguration ( Chorus.sync.ProjectFolderConfiguration config ) : void
config Chorus.sync.ProjectFolderConfiguration
return void
Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="chorusSystem"></param>
        /// <param name="getFormWithContextForInvokingErrorDialogs">using a function here rather than a value
        /// becuase this class is created by the dependency injection system while building up this for (a
        /// project window), so that value isn't available yet.</param>
        public SendReceiver(ChorusSystem chorusSystem, Func <Form> getFormWithContextForInvokingErrorDialogs)        //, Form formWithContextForInvokingErrorDialogs)
        {
            _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.ToLower().Contains("distfiles");

            if (!SendReceiveDisabled)
            {
                _chorusSystem = chorusSystem;
                BloomChorusRules.AddFileInfoToFolderConfiguration(_chorusSystem.ProjectFolderConfiguration);
            }
        }