Esempio n. 1
0
 protected void Change (TGadgetBase alias)
 {
   if (alias.NotNull ()) {
     GadgetInfo = alias.GadgetInfo;
     GadgetName = alias.GadgetName;
     Material = alias.Material;
     Description = alias.Description;
     ExternalLink = alias.ExternalLink;
     Enabled = alias.Enabled;
     Locked = alias.Locked;
     Busy = alias.Busy;
     IsChecked = alias.IsChecked;
     SetImage (alias.GetImage ());
     Date = alias.Date;
     Reference = alias.Reference;
     Value = alias.Value;
   }
 }
Esempio n. 2
0
 public void ChangeFrom (TGadgetBase gadget)
 {
   if (gadget.NotNull ()) {
     // preserve Value property
     GadgetInfo = gadget.GadgetInfo;
     GadgetName = gadget.GadgetName;
     Material = gadget.Material;
     Description = gadget.Description;
     ExternalLink = gadget.ExternalLink;
     Enabled = gadget.Enabled;
     Locked = gadget.Locked;
     Busy = gadget.Busy;
     IsChecked = gadget.IsChecked;
     SetImage (gadget.GetImage ());
     Date = gadget.Date;
     MaterialId = gadget.MaterialId;
     Reference = gadget.Reference;
   }
 }