コード例 #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);
        }
コード例 #2
0
ファイル: TableCategory.cs プロジェクト: MutesK/Crema
 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);
 }