コード例 #1
0
        public void UpdateProfile(GarminCategories category)
        {
            GarminActivityProfile profile = GarminProfileManager.Instance.GetProfileForActivity(category);

            if (profile.GetType() == typeof(GarminBikingActivityProfile))
            {
                m_Profile = (GarminBikingActivityProfile)profile;
            }
            else
            {
                m_Profile = null;
            }
        }
コード例 #2
0
        public override GarminActivityProfile Clone()
        {
            MemoryStream stream = new MemoryStream();
            GarminActivityProfile clone = new GarminBikingActivityProfile(Category);

            Serialize(stream);
            stream.Position = 0;
            clone.Deserialize(stream, Constants.CurrentVersion);

            return clone;
        }