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