示例#1
0
        /// <summary>
        ///
        /// </summary>
        private void ShowApplicationInformation(ClickOnceController clickOnce)
        {
            if (!clickOnce.IsNetworkDeployed)
            {
                return;
            }

            WriteLog("===== Application Information =====");

            WriteLog(string.Format("UpdatedApplicationFullName = {0}", clickOnce.GetUpdatedApplicationFullName()));
            WriteLog(string.Format("CurrentVersion = {0}", clickOnce.GetCurrentVersion()));
            WriteLog(string.Format("UpdatedVersion = {0}", clickOnce.GetUpdatedVersion()));
            WriteLog(string.Format("ActivationUri = {0}", clickOnce.GetActivationUri()));
            WriteLog(string.Format("UpdateLocation = {0}", clickOnce.GetUpdateLocation()));
            WriteLog(string.Format("DataDirectory = {0}", clickOnce.GetDataDirectory()));
            WriteLog(string.Format("LastUpdateCheckDateTime = {0}", clickOnce.GetLastUpdateCheckDateTime()));
            WriteLog(string.Format("Group1.IsFileGroupDownloaded = {0}", clickOnce.IsFileGroupDownloaded("Group1")));
            WriteLog(string.Format("Group2.IsFileGroupDownloaded = {0}", clickOnce.IsFileGroupDownloaded("Group2")));

            WriteLog("");
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        private void ShowApplicationInformation()
        {
            if (!m_ClickOnce.IsNetworkDeployed)
            {
                return;
            }

            this.Text = string.Format("{0} {1}", m_ApplicationTitle, m_ClickOnce.GetCurrentVersion());

            WriteLog("===== Application Information =====");

            WriteLog(string.Format("UpdatedApplicationFullName = {0}", m_ClickOnce.GetUpdatedApplicationFullName()));
            WriteLog(string.Format("CurrentVersion = {0}", m_ClickOnce.GetCurrentVersion()));
            WriteLog(string.Format("UpdatedVersion = {0}", m_ClickOnce.GetUpdatedVersion()));
            WriteLog(string.Format("ActivationUri = {0}", m_ClickOnce.GetActivationUri()));
            WriteLog(string.Format("UpdateLocation = {0}", m_ClickOnce.GetUpdateLocation()));
            WriteLog(string.Format("DataDirectory = {0}", m_ClickOnce.GetDataDirectory()));
            WriteLog(string.Format("LastUpdateCheckDateTime = {0}", m_ClickOnce.GetLastUpdateCheckDateTime()));
            WriteLog(string.Format("Group1.IsFileGroupDownloaded = {0}", m_ClickOnce.IsFileGroupDownloaded("Group1")));
            WriteLog(string.Format("Group2.IsFileGroupDownloaded = {0}", m_ClickOnce.IsFileGroupDownloaded("Group2")));
            WriteLog(string.Format("Group3.IsFileGroupDownloaded = {0}", m_ClickOnce.IsFileGroupDownloaded("Group3")));

            WriteLog("");
        }