Ejemplo n.º 1
0
        //------------------------------------------------------------------
        //BuildPropertyValueCollection
        //------------------------------------------------------------------
        public static SettingsPropertyValueCollection BuildPropertyValueCollection(ProfieProperityCollection propCollection)
        {
            SettingsPropertyValueCollection propertyValueCollection = new SettingsPropertyValueCollection();
            SettingsProperty      p;
            SettingsPropertyValue p_Value;

            foreach (ProfieProperity prop in propCollection.Properities)
            {
                //------------------------------------
                p = new SettingsProperty(prop.PropName);
                p.PropertyType = prop.PropType;
                p.DefaultValue = prop.PropDefaultValue;
                //------------------------------------------------------------
                //For retriving
                //if (p.SerializeAs == SettingsSerializeAs.ProviderSpecific)
                //{
                //    if (p.PropertyType.IsPrimitive || (p.PropertyType == typeof(string)))
                //        p.SerializeAs = SettingsSerializeAs.String;
                //    else
                //        p.SerializeAs = SettingsSerializeAs.Xml;
                //}
                //-------------------------------------------------------------
                //Value
                p_Value = new SettingsPropertyValue(p);
                //p_Value.PropertyValue = txtName.Text;
                propertyValueCollection.Add(p_Value);
                //------------------------------------
            }
            return(propertyValueCollection);
        }
Ejemplo n.º 2
0
 //------------------------------------------
 public UsersDataProfile()
 {
     ProfieProperities = new ProfieProperityCollection();
     ProfieProperities.Add("PersonalPhoto");
     ProfieProperities.Add("Facebook");
     ProfieProperities.Add("Twitter");
     ProfieProperities.Add("Youtube");
     ProfieProperities.Add("GooglePlus");
 }
Ejemplo n.º 3
0
 //------------------------------------------
 public ItemProfile()
 {
     ProfieProperities = new ProfieProperityCollection();
     ProfieProperities.Add(new ProfieProperity("No", typeof(int)));
     ProfieProperities.Add("Name");
     ProfieProperities.Add("Mobile");
     ProfieProperities.Add("UserName");
     ProfieProperities.Add("Password");
     ProfieProperities.Add("Email");
 }