Example #1
0
 public GridMetamodelBuilder()
 {
     this.newItemLink = LinkMetamodel.Disabled;
     this.editLink    = LinkMetamodel.Disabled;
     this.detailsLink = LinkMetamodel.Disabled;
     this.deleteLink  = LinkMetamodel.Disabled;
 }
Example #2
0
        public GridMetamodelBuilder <TGridModel> AllowDelete(string text = null)
        {
            if (text == null)
            {
                text = UiTexts.GridButton_Delete;
            }

            this.deleteLink = new LinkMetamodel(true, text);
            return(this);
        }
Example #3
0
        public GridMetamodelBuilder <TGridModel> AllowEdit(string text = null)
        {
            if (text == null)
            {
                text = UiTexts.GridButton_Edit;
            }

            this.editLink = new LinkMetamodel(true, text);
            return(this);
        }
Example #4
0
        public GridMetamodelBuilder <TGridModel> AllowNew(string text = null)
        {
            if (text == null)
            {
                text = UiTexts.GridButton_Create;
            }

            this.newItemLink = new LinkMetamodel(true, text);
            return(this);
        }