Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dependencyObject"></param>
        /// <param name="dependencyPropertyChangedEventArgs"></param>
        static void OnLicenseTypePropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
        {
            WindowAbout windowAbout = dependencyObject as WindowAbout;
            Int16       licenseType = (Int16)dependencyPropertyChangedEventArgs.NewValue;

            windowAbout.EvaluateLicense(windowAbout.CreationTime, licenseType);
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dependencyObject"></param>
        /// <param name="dependencyPropertyChangedEventArgs"></param>
        static void OnCreationTimePropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
        {
            WindowAbout windowAbout  = dependencyObject as WindowAbout;
            DateTime    creationTime = (DateTime)dependencyPropertyChangedEventArgs.NewValue;

            windowAbout.EvaluateLicense(creationTime, windowAbout.LicenseType);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Displays information about the application and the license.
        /// </summary>
        /// <param name="sender">The object that sent the command.</param>
        /// <param name="e">The command arguments.</param>
        void OnAbout(object sender, ExecutedRoutedEventArgs e)
        {
            // This will display the About box with the license information in it.
            WindowAbout windowAbout = new WindowAbout()
            {
                LicenseType  = this.License.LicenseType,
                CreationTime = this.License.CreationTime,
                Version      = typeof(ExplorerWindow).Assembly.GetName().Version
            };

            windowAbout.ShowDialog();
        }