private async void method_1(object sender, RoutedEventArgs e) { lXwNBETlUICPpizJQplTWzgWkAbIA ppizJqplTwzgWkAbIa = this; ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.ShowButtons = Visibility.Collapsed; ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.ShowProgressBar = Visibility.Visible; UpdateManager updateManager = new UpdateManager(UjhNUECyvifOzVkmQlhIqhYWIGFh.string_0, (string)null, (string)null, (IFileDownloader)null); try { ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.UpdateEnabled = false; ReleaseEntry releaseEntry = await EasyModeMixin.UpdateApp((IUpdateManager)updateManager, (Action <int>) null); int num = (int)MessageBox.Show("Update done. Please restart"); ((Window)ppizJqplTwzgWkAbIa).Close(); } finally { if (updateManager != null) { ((IDisposable)updateManager).Dispose(); } } updateManager = (UpdateManager)null; }
public async void method_0() { lXwNBETlUICPpizJQplTWzgWkAbIA ppizJqplTwzgWkAbIa = this; UpdateManager updateManager = new UpdateManager(UjhNUECyvifOzVkmQlhIqhYWIGFh.string_0, (string)null, (string)null, (IFileDownloader)null); try { UpdateInfo updateInfo = await updateManager.CheckForUpdate(false, (Action <int>) null); if (updateInfo.get_CurrentlyInstalledVersion() != null) { ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.CurrentVersion = ((object)updateInfo.get_CurrentlyInstalledVersion().get_Version()).ToString(); } if (updateInfo.get_FutureReleaseEntry() != null) { ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.LatestVersion = ((object)updateInfo.get_FutureReleaseEntry().get_Version()).ToString(); } updateInfo.FetchReleaseNotes(); ppizJqplTwzgWkAbIa.fBNJIXiYZSrrQLEPrbpdSeciniHk_0.UpdateEnabled = true; } finally { if (updateManager != null) { ((IDisposable)updateManager).Dispose(); } } updateManager = (UpdateManager)null; }