예제 #1
0
        public override bool Open(object id)
        {
            m_SceneService = VEFModule.UnityContainer.Resolve(typeof(ISceneService), "") as ISceneService;

            int sceneID = VEF_Helper.StringToContentIDData(ContentID).IntValue;

            //  this.Location = ItemFolder + "\\" + sceneID + ".xml";

            //read sceneData from DAL -- Read data from XML not from database -> database data not human readable
            //9_01_2015      m_FBData = ObjectSerialize.Deserialize<FB_Scene>(this.Location.ToString()); // XML Serialize
            if (FBObject == null)
            {
                Create();
            }
            else
            {
                RaisePropertyChanged("FB_SceneData");
            }

            RaisePropertyChanged("SceneItems");

            m_SceneService.SelectedScene = this;

            //only able to save data into database not load
            return(true);
        }
예제 #2
0
        public override bool Open(object id)
        {
            int sceneID = VEF_Helper.StringToContentIDData(ContentID).IntValue;

            //  this.Location = ItemFolder + "\\" + sceneID + ".xml";

            //read sceneData from DAL -- Read data from XML not from database -> database data not human readable
            //9_01_2015      m_FBData = ObjectSerialize.Deserialize<FB_Scene>(this.Location.ToString()); // XML Serialize


            //only able to save data into database not load
            return(true);
        }