public NewTableTemplate(TableCategory category) { this.category = category ?? throw new ArgumentNullException(nameof(category)); this.category.Attach(this); this.IsNew = true; }
protected override void OnEndEdit(Authentication authentication, CremaTemplate template) { base.OnEndEdit(authentication, template); this.table = this.category.Context.Tables.AddNew(authentication, template); this.category = null; }
protected override void OnCancelEdit(Authentication authentication) { base.OnCancelEdit(authentication); this.category = null; }
public NewTableTemplate(TableCategory category) { this.category = category; this.IsNew = true; }