public NewTypeTemplate(TypeCategory category) { this.category = category; this.IsNew = true; }
protected override void OnCancelEdit(Authentication authentication) { base.OnCancelEdit(authentication); this.category = null; }
public NewTypeTemplate(TypeCategory category) { this.category = category ?? throw new ArgumentNullException(nameof(category)); this.category.Attach(this); this.IsNew = true; }
protected override void OnEndEdit(Authentication authentication) { base.OnEndEdit(authentication); this.type = this.Types.AddNew(authentication, this.TypeSource); this.category = null; }