Esempio n. 1
0
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int      major     = 0;
                int      minor     = 0;
                int      patch     = 0;
                DateTime installed = DateTime.MinValue;

                AppContext.GetApplicationSystemVersion(out major, out minor, out patch, out installed);
                ApplicationSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                AssetContext.GetAssetSystemVersion(out major, out minor, out patch, out installed);
                BusinessFoundationSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                CatalogContext.GetCatalogSystemVersion(out major, out minor, out patch, out installed);
                CatalogSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                CMSContext.GetContentSystemVersion(out major, out minor, out patch, out installed);
                ContentSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                MarketingContext.GetMarketingSystemVersion(out major, out minor, out patch, out installed);
                MarketingSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                OrderContext.GetOrderSystemVersion(out major, out minor, out patch, out installed);
                OrderSystemVersionText.Text = GetVersionString(major, minor, patch, installed);

                ProfileContext.GetProfileSystemVersion(out major, out minor, out patch, out installed);
                ProfileSystemVersionText.Text = GetVersionString(major, minor, patch, installed);
            }
            catch (Exception ex)
            {
                ErrorText.Visible = true;
                ErrorText.Text    = String.Format("Error: {0}", ex.Message);
            }
        }