Beispiel #1
0
        internal void Select(GadgetRegistration gadget)
        {
            if (gadget.NotNull())
            {
                m_Registration.CopyFrom(gadget);

                ValidateProperty();
            }
        }
Beispiel #2
0
 public TContentClient (GadgetRegistration gadget)
   : this ()
 {
   if (gadget.NotNull ()) {
     Id = gadget.Id;
     Category = TCategoryType.ToValue (TCategory.Registration);
     Name = gadget.GadgetName;
     Info = gadget.GadgetInfo;
   }
 }
Beispiel #3
0
        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;
                }
            }
        }