public NewTypeTemplate NewType(Authentication authentication) { this.DataBase.ValidateBeginInDataBase(authentication); this.CremaHost.DebugMethod(authentication, this, nameof(NewType), this); var template = new NewTypeTemplate(this); template.BeginEdit(authentication); return template; }
public NewTypeTemplate NewType(Authentication authentication) { try { this.DataBase.ValidateBeginInDataBase(authentication); this.CremaHost.DebugMethod(authentication, this, nameof(NewType), this); var template = new NewTypeTemplate(this); template.BeginEdit(authentication); return(template); } catch (Exception e) { this.CremaHost.Error(e); throw; } }
public void Attach(NewTypeTemplate template) { template.EditCanceled += (s, e) => this.templateList.Remove(template); template.EditEnded += (s, e) => this.templateList.Remove(template); this.templateList.Add(template); }