/// <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);
        }
        /// <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);
        }
Esempio 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="executedRoutedEventArgs">The command arguments.</param>
        void OnAbout(Object sender, ExecutedRoutedEventArgs executedRoutedEventArgs)
        {
            // This will display the About box with the license information in it.
            WindowAbout windowAbout = new WindowAbout()
            {
                Version = typeof(ExplorerWindow).Assembly.GetName().Version
            };

            windowAbout.ShowDialog();
        }