Exemplo n.º 1
0
        public AboutDialog()
        {
            InitializeComponent();

            lblVersion.Text     = string.Format("{0} {1}", Resources.Version, TabsterEnvironment.GetVersion().ToString(TabsterVersionFormatFlags.BuildString | TabsterVersionFormatFlags.CommitShort | TabsterVersionFormatFlags.Truncated));
            lblVersion.LinkArea = TabsterEnvironment.GetVersion().Commit != null ? new LinkArea(lblVersion.Text.Length - TabsterEnvironment.GetVersion().Commit.ToShorthandString().Length, TabsterEnvironment.GetVersion().Commit.ToShorthandString().Length) : new LinkArea(0, 0);

            lblCopyright.Text   = BrandingUtilities.GetCopyrightString(Assembly.GetExecutingAssembly());
            txtLicense.Text     = Resources.ApplicationLicense;
            txtFontLicense.Text = MonoUtilities.ReadFileText(new[] { Application.StartupPath, "Resources", "SourceCodePro", "SIL OPEN FONT LICENSE.txt" }.Aggregate(Path.Combine));

            LoadPlugins();
        }