public override void ApplyChanges() { if (solution != null) { solution.LocalAuthorInformation = widget.Get(); } }
public override void ApplyChanges() { if (solution != null) { AuthorInformation ainfo = widget.Get(); if (ainfo != null) { solution.UserProperties.SetValue <AuthorInformation> ("AuthorInfo", ainfo); } else if (solution.UserProperties.HasValue("AuthorInfo")) { solution.UserProperties.RemoveValue("AuthorInfo"); } } }