Пример #1
0
 public void LoadPreferences(UserPrefObj pPreferences)
 {
     mRoom.LoadPreferences(pPreferences);
     EventUtils.FireTypedEvent(PreferencesLoaded, pPreferences);
 }
Пример #2
0
        protected void OnColorSaveFired(gigaFlash.ConfigObjects.ColorConfig value)
        {
            UserPrefObj userprefobj;
            if (mPrefObj == null)
            {
                userprefobj = new UserPrefObj();
                String now = DateTime.Now.ToString();
                userprefobj.DateCreated = now;
                userprefobj.DateLastModfied = now;
                DateTime dt = DateTime.Parse(userprefobj.DateCreated);
                userprefobj.Colors.Add(value);
            }
            else
            {
                mPrefObj.Colors.Add(value);
                userprefobj = mPrefObj;
            }

            EventUtils.FireTypedEvent(RoomSaveFired, userprefobj);
        }
Пример #3
0
 public void LoadPreferences(UserPrefObj pPrefObj)
 {
     foreach (LightView lightView in mLightViews)
     {
         lightView.CustomColors = pPrefObj.Colors;
     }
 }
Пример #4
0
 public void LoadPreferences(UserPrefObj pUserPrefObj)
 {
     mPrefObj = pUserPrefObj;
     mView.LoadPreferences(pUserPrefObj);
 }