コード例 #1
0
 public NewTableTemplate(TableCategory category)
 {
     this.category = category ?? throw new ArgumentNullException(nameof(category));
     this.category.Attach(this);
     this.IsNew = true;
 }
コード例 #2
0
 protected override void OnEndEdit(Authentication authentication, CremaTemplate template)
 {
     base.OnEndEdit(authentication, template);
     this.table    = this.category.Context.Tables.AddNew(authentication, template);
     this.category = null;
 }
コード例 #3
0
 protected override void OnCancelEdit(Authentication authentication)
 {
     base.OnCancelEdit(authentication);
     this.category = null;
 }
コード例 #4
0
ファイル: NewTableTemplate.cs プロジェクト: teize001/Crema
 public NewTableTemplate(TableCategory category)
 {
     this.category = category;
     this.IsNew    = true;
 }