Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AboutBox"/> class.
        /// </summary>
        public AboutBox()
        {
            this.InitializeComponent();
            ////Assembly app = Assembly.GetExecutingAssembly();
            ////AssemblyTitleAttribute title = (AssemblyTitleAttribute)app.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0];
            ////AssemblyProductAttribute product = (AssemblyProductAttribute)app.GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0];
            ////AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)app.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0];
            ////AssemblyCompanyAttribute company = (AssemblyCompanyAttribute)app.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false)[0];
            ////AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)app.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0];
            ////Version version = app.GetName().Version;
            AboutAssemblyDataProvider ap = new AboutAssemblyDataProvider();

            this.Title = ap.Title;
            this.productName.Content = ap.Product;
            this.version.Content     = ap.Version;
            this.copyright.Content   = ap.Copyright;
            this.company.Content     = ap.Company;
            this.description.Text    = ap.Description;
        }
        public AboutWindow()
        {
            InitializeComponent();

            DataContext = new AboutAssemblyDataProvider();
        }
 public About()
 {
     InitializeComponent();
     DataContext = new AboutAssemblyDataProvider();
 }