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

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

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

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