예제 #1
0
파일: Program.cs 프로젝트: zybexXL/Zelda
        static void Main()
        {
            AutoUpgrade.Cleanup();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ZeldaUI());
        }
예제 #2
0
        private void ZeldaUI_Shown(object sender, EventArgs e)
        {
            currentTab?.scintilla.Focus();
            if (settings.isDefault)
            {
                btnAbout_Click(null, EventArgs.Empty);
            }

            Task.Run(() =>
            {
                if (AutoUpgrade.CheckUpgrade(true))
                {
                    UpgradeAvailable(AutoUpgrade.LatestVersion);
                }
            });
        }
예제 #3
0
 private void lblUpgrade_Click(object sender, EventArgs e)
 {
     AutoUpgrade.CheckUpgrade();
     lblUpgrade.Visible = false;
     lblStatus.Visible  = true;
 }