Load() public method

public Load ( MonoDevelop.VersionControl.CommitMessageFormat format, AuthorInformation uinfo ) : void
format MonoDevelop.VersionControl.CommitMessageFormat
uinfo AuthorInformation
return void
        protected override void LoadFrom(VersionControlPolicy policy)
        {
            format.Style = new CommitMessageStyle();
            format.Style.CopyFrom(policy.CommitMessageStyle);
            AuthorInformation uinfo;

            if (ConfiguredSolutionItem != null)
            {
                uinfo = IdeApp.Workspace.GetAuthorInformation(ConfiguredSolutionItem);
            }
            else
            {
                uinfo = IdeApp.Workspace.GetAuthorInformation(ConfiguredSolution);
            }
            widget.Load(format, uinfo);
        }
Esempio n. 2
0
        protected override void LoadFrom(VersionControlPolicy policy)
        {
            format.Style = new CommitMessageStyle();
            format.Style.CopyFrom(policy.CommitMessageStyle);
            AuthorInformation uinfo;

            if (ConfiguredSolutionItem != null)
            {
                uinfo = ConfiguredSolutionItem.AuthorInformation;
            }
            else
            {
                uinfo = ConfiguredSolution != null ? ConfiguredSolution.AuthorInformation : AuthorInformation.Default;
            }

            widget.Load(format, uinfo);
        }