// // Created Sept. 2009 by Nicholas Armstrong. Available online at http://nicholasarmstrong.com // // // Desktop application host for demo application. // //----------------------------------------------------------------------- namespace NicholasArmstrong.Samples.ECE150.Loops.DesktopHost { using System; using System.Windows; /// /// Desktop application host for demo application. /// public partial class Window1 : Window { /// /// Initializes a new instance of the Window1 class. /// public Window1() { InitializeComponent(); } /// /// Gets the application version number. /// public string VersionNumber { get { Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; return String.Format("Version {0}.{1}", version.Major, version.Minor); } } /// /// Gets the application's short name. /// public string AppShortName { get { return "Loops"; } } /// /// Gets the application's long name. /// public string AppLongName { get { return this.AppShortName + " Demo Application"; } } /// /// Gets the application's title string. /// public string TitleString { get { return "ECE 150 Demo Application: " + this.AppShortName + " | NicholasArmstrong.com"; } } /// /// Shows or hides the about screen. /// /// The source of the event. /// Arguments describing the event. private void AppTitle_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (this.AppAboutScreen.Visibility == Visibility.Collapsed) { this.AppAboutScreen.Visibility = Visibility.Visible; } else { this.AppAboutScreen.Visibility = Visibility.Collapsed; } } } }