public void CheckInNow(string message)
{
Guard.AgainstNull(_getFormWithContextForInvokingErrorDialogs(),"_getFormWithContextForInvokingErrorDialogs()");
if (SendReceiveDisabled)
return; //we don't do chorus on our source tree
//this gets used in a string format somewhere down the line here:
message = message.Replace("{", "{{").Replace("}", "}}");
_chorusSystem.AsyncLocalCheckIn(BloomLabelForCheckins + " "+ message,
(result) =>
{
if (result.ErrorEncountered != null)
{
// TODO: there is an error here somewhere... BL-284, where hg complains that .../my book.htm isn't there.
// Maybe it got renamed on another thread or something....?
_getFormWithContextForInvokingErrorDialogs().BeginInvoke(new Action(() =>
SIL.Reporting.ErrorReport.NotifyUserOfProblem
(result.ErrorEncountered,
"Error while creating a milestone in the local Send/Receive repository")))
;
}
});
}