示例#1
0
 private void FormMain_Shown(object sender, EventArgs e)
 {
     if (!IsAdministrator())
     {
         ActionCenter.Toast("Not running as admin, global hotkeys will not work while in game", StartPoint(), 2);
     }
     Updater.LaunchUpdater();
 }
示例#2
0
 private void BtnManualUpdateCheck_Click(object sender, EventArgs e)
 {
     Updater.CurrentVersion = CurrentConfig.LastCommitID;
     Updater.LaunchUpdater();
     if (CurrentConfig.LastCommitID == Updater.GetLatestVersion())
     {
         ActionCenter.Toast("No update available", StartPoint());
     }
 }