AGS.Editor.GUIController.ShowCheckOutDialog C# (CSharp) Метод

ShowCheckOutDialog() публичный Метод

public ShowCheckOutDialog ( List fileNames ) : bool
fileNames List
Результат bool
        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;
        }

Same methods

GUIController::ShowCheckOutDialog ( string fileName ) : bool
GUIController