internal void Select(GadgetRegistration gadget) { if (gadget.NotNull()) { m_Registration.CopyFrom(gadget); ValidateProperty(); } }
public TContentClient (GadgetRegistration gadget) : this () { if (gadget.NotNull ()) { Id = gadget.Id; Category = TCategoryType.ToValue (TCategory.Registration); Name = gadget.GadgetName; Info = gadget.GadgetInfo; } }
internal void RegistrationChanged(GadgetRegistration gadget) { if (gadget.NotNull()) { ItemsSource.Clear(); foreach (var item in GadgetResultDictionary) { var gadgetResult = item.Value; if (gadgetResult.IsRegistrationContent(gadget.Id)) { ItemsSource.Add(gadgetResult); } } if (ItemsSource.Any()) { ResultSelectedIndex = 0; } } }