Example #1
0
        public NewTableTemplate NewTable(Authentication authentication)
        {
            this.DataBase.ValidateBeginInDataBase(authentication);
            this.CremaHost.DebugMethod(authentication, this, nameof(NewTable), this);
            var template = new NewTableTemplate(this);

            template.BeginEdit(authentication);
            return(template);
        }
Example #2
0
 public void Attach(NewTableTemplate template)
 {
     template.EditCanceled += (s, e) => this.templateList.Remove(template);
     template.EditEnded    += (s, e) => this.templateList.Remove(template);
     this.templateList.Add(template);
 }