Esempio n. 1
0
    public bool UpdateFrom (GadgetTest gadget)
    {
      if (gadget.NotNull ()) {
        if (Contains (gadget.Id)) {
          if (string.IsNullOrEmpty (Description)) {
            Description = gadget.Description;
          }

          if (HasMaterial.IsFalse ()) {
            MaterialId = gadget.MaterialId;
            Material = gadget.Material;
            SetImage (gadget.GetImage ());
          }
        }
      }

      return (Content.UpdateFrom (gadget));
    }