public CollectionAddRenameFormPresenter(ICollectionAddRenameForm form, ICollectionAddRenameModel model)
        {
            _form  = form;
            _model = model;

            new CollectionAddRenamePresenter(form.CollectionRenameView, model);
        }
 public CollectionEditor(ICollectionEditor collectionEditor, ICollectionNameValidator collectionNameValidator,
                         ICollectionAddRenameForm collectionAddRenameForm, MapCacher mapCacher)
 {
     _collectionEditor        = collectionEditor;
     _collectionNameValidator = collectionNameValidator;
     _collectionAddRenameForm = collectionAddRenameForm;
     _mapCacher = mapCacher;
 }
Example #3
0
        public static string GetCollectionName(this ICollectionAddRenameForm form, Func <string, bool> isCollectionNameValid, string orginalName = "",
                                               bool isRenameForm = false)
        {
            ICollectionAddRenameModel model = new CollectionAddRenameModel(isCollectionNameValid, orginalName);

            new CollectionAddRenameFormPresenter(form, model);
            form.IsRenameForm = isRenameForm;
            form.CollectionRenameView.OrginalCollectionName = orginalName;
            form.ShowAndBlock();

            return(model.NewCollectionNameIsValid ? model.NewCollectionName : "");
        }