예제 #1
0
        public About()
        {
            InitializeComponent();

            mmApp.SetThemeWindowOverride(this);

            VersionLabel.Content     = "Version " + mmApp.GetVersionForDisplay();
            VersionDateLabel.Content = mmApp.GetVersionDate();
            OsLabel.Content          = (Environment.Is64BitProcess ? "64 bit" : "32 bit") + " • " +
                                       ".NET " + ComputerInfo.GetDotnetVersion();

            if (UnlockKey.IsRegistered())
            {
                PanelFreeNotice.Visibility = System.Windows.Visibility.Hidden;
            }

            if (mmApp.Configuration.ApplicationUpdates.AccessCount > 20)
            {
                LabelUsingFreeVersion.Text =
                    $"You've used the free version {mmApp.Configuration.ApplicationUpdates.AccessCount:n0} times.";
            }
        }