void WritePropertyInfo(EntityPropertyInfo propertyinfo)
 {
     LogFile.WriteLine("WritePropertyInfo " + propertyinfo.ToString());
     if (propertyinfo is IntPropertyInfo)
     {
         ((IntPropertyInfo)propertyinfo).Handler(ReadIntPropertyFromForm(propertyinfo.Name));
     }
     else if (propertyinfo is StringPropertyInfo)
     {
         ((StringPropertyInfo)propertyinfo).Handler(ReadStringPropertyFromForm(propertyinfo.Name));
     }
 }
        public void SliderValueChanged(object source, MoveSliderArgs e)
        {
            LogFile.WriteLine("FormValueChanged " + source.ToString());
            string name = "";

            foreach (string thisname in ControlsIndex.Keys)
            {
                if (source == ControlsIndex[thisname])
                {
                    name = thisname;
                }
            }
            foreach (object propertyinfoobject in PropertyInfos)
            {
                EntityPropertyInfo propertyinfo = propertyinfoobject as EntityPropertyInfo;
                if (propertyinfo.Name == name)
                {
                    WritePropertyInfo(propertyinfo);
                }
            }
            MetaverseClient.GetInstance().worldstorage.OnModifyEntity(thisentity);
        }
 void WritePropertyInfo(EntityPropertyInfo propertyinfo)
 {
     LogFile.WriteLine("WritePropertyInfo " + propertyinfo.ToString());
     if (propertyinfo is IntPropertyInfo)
     {
         ((IntPropertyInfo)propertyinfo).Handler(ReadIntPropertyFromForm(propertyinfo.Name));
     }
     else if (propertyinfo is StringPropertyInfo)
     {
         ((StringPropertyInfo)propertyinfo).Handler(ReadStringPropertyFromForm(propertyinfo.Name));
     }
 }