示例#1
0
 private void frmMain_Shown(object sender, EventArgs e)
 {
     try
     {
         m_msiUpdater = new msiupdater(new Version(System.Windows.Forms.Application.ProductVersion));
         m_msiUpdater.Apppath = System.Windows.Forms.Application.UserAppDataPath;
         m_msiUpdater.onDataPump += new msiupdater.DataPump(m_msiUpdater_onDataPump);
         m_msiUpdater.onUpdateProgressChanged += new msiupdater.UpdateProgressChanged(m_msiUpdater_onUpdateProgressChanged);
         m_msiUpdater.CheckForUpdates("http://develop.trionictuning.com/TrionicCANFlasher/", "canflasher", "TrionicCANFlash.msi");
     }
     catch (Exception E)
     {
         AddLogItem(E.Message);
     }
 }
示例#2
0
 private void frmMain_Shown(object sender, EventArgs e)
 {
     try
     {
         m_msiUpdater = new msiupdater(new Version(System.Windows.Forms.Application.ProductVersion));
         m_msiUpdater.Apppath = System.Windows.Forms.Application.UserAppDataPath;
         m_msiUpdater.onDataPump += new msiupdater.DataPump(m_msiUpdater_onDataPump);
         m_msiUpdater.onUpdateProgressChanged += new msiupdater.UpdateProgressChanged(m_msiUpdater_onUpdateProgressChanged);
         m_msiUpdater.CheckForUpdates("http://develop.trionictuning.com/T7Suite/", "t7suitepro", "T7Suite.msi");
     }
     catch (Exception E)
     {
         logger.Debug(E.Message);
     }
     if (IsChristmasTime())
     {
         ShowChristmasWish();
     }
     if (m_appSettings.HideSymbolTable)
     {
         dockSymbols.Visibility = DockVisibility.AutoHide;
         dockSymbols.HideImmediately();
     }
 }
示例#3
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     try
     {
         m_msiUpdater = new msiupdater(new Version(System.Windows.Forms.Application.ProductVersion));
         m_msiUpdater.Apppath = System.Windows.Forms.Application.UserAppDataPath;
         m_msiUpdater.onDataPump += new msiupdater.DataPump(m_msiUpdater_onDataPump);
         m_msiUpdater.onUpdateProgressChanged += new msiupdater.UpdateProgressChanged(m_msiUpdater_onUpdateProgressChanged);
         m_msiUpdater.CheckForUpdates("http://develop.trionictuning.com/T8Suite/", "t8suitepro", "T8Suite.msi");
     }
     catch (Exception E)
     {
         logger.Debug(E.Message);
     }
     if (IsChristmasTime())
     {
         ShowChristmasWish();
     }
 }