void Checker_UpdateFound(UpgradeChecker.UpgradeInfo Info) { using (UpgradeForm uf = new UpgradeForm()) { uf.Owner = this; uf.NewVersion = Info; uf.ShowDialog(); uf.Dispose(); } }
private void menuUpdate_Click(object sender, EventArgs e) { if (UpgradeChecker.devBuild) { using (UpgradeForm f = new UpgradeForm()) { f.Owner = this; f.ShowDialog(); f.Dispose(); } } else { Checker.CheckForUpgrade(); } }