public bool ShowCheckOutDialog(List<string> fileNames)
{
bool checkedOut = false;
CheckinsDialog dialog = new CheckinsDialog("Check Out", "Check out", fileNames.ToArray());
dialog.ShowDialog();
if (dialog.SelectedFiles != null)
{
try
{
_agsEditor.SourceControlProvider.CheckOutFiles(dialog.SelectedFiles, dialog.Comments);
checkedOut = (dialog.SelectedFiles.Length == fileNames.Count);
}
catch (SourceControlException ex)
{
this.ShowMessage("Checkout failed: " + ex.SccErrorMessage, MessageBoxIcon.Warning);
checkedOut = false;
}
}
dialog.Dispose();
return checkedOut;
}