void ViewChanges_Click(object sender, EventArgs e) { frmChanges changeForm = new frmChanges(auBackend.Version, auBackend.RawChanges, auBackend.AreChangesRTF, ShowButtonUpdateNow, translation); changeForm.ShowDialog(ownerForm); if (changeForm.UpdateNow) { InstallNow(); } }
void ViewChanges_Click(object sender, EventArgs e) { using (frmChanges changeForm = new frmChanges(auBackend.Version, auBackend.RawChanges, auBackend.AreChangesRTF, ShowButtonUpdateNow, translation)) { changeForm.ShowDialog(); if (changeForm.UpdateNow) InstallNow(); } }