public void UpdateProfile(GarminCategories category) { GarminActivityProfile profile = GarminProfileManager.Instance.GetProfileForActivity(category); if (profile.GetType() == typeof(GarminBikingActivityProfile)) { m_Profile = (GarminBikingActivityProfile)profile; } else { m_Profile = null; } }
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; }