Example #1
0
        public SupplierList()
        {
            // Use factory methods and do not use direct creation.
            SupplierEditSaved.Register(this);

            var rlce = RaiseListChangedEvents;

            RaiseListChangedEvents = false;
            AllowNew               = false;
            AllowEdit              = false;
            AllowRemove            = false;
            RaiseListChangedEvents = rlce;
        }
Example #2
0
 /// <summary>
 /// This method is called on a newly deserialized object
 /// after deserialization is complete.
 /// </summary>
 protected override void OnDeserialized()
 {
     base.OnDeserialized();
     SupplierEditSaved.Register(this);
     // add your custom OnDeserialized actions here.
 }