X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmUpdater.cs;h=816e00facb04dfa01f7ea5effc97f882dfbacd47;hb=a524194964cbed535f17b1b729fec7847539c94e;hp=789a620fc5f0becd25c3c63f6b64996b65eb7e53;hpb=d646c74eab71ce803181537759b19c9b2726fc0a;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs index 789a620f..816e00fa 100644 --- a/win/C#/frmUpdater.cs +++ b/win/C#/frmUpdater.cs @@ -12,31 +12,31 @@ namespace Handbrake { public partial class frmUpdater : Form { - AppcastReader appcast; + readonly AppcastReader _appcast; public frmUpdater(AppcastReader reader) { InitializeComponent(); - appcast = reader; - getRss(); - setVersions(); + _appcast = reader; + GetRss(); + SetVersions(); } - private void getRss() + private void GetRss() { - wBrowser.Url = appcast.descriptionUrl; + wBrowser.Url = _appcast.descriptionUrl; } - private void setVersions() + private void SetVersions() { string old = "(You have: " + Properties.Settings.Default.hb_version.Trim() + " / " + Properties.Settings.Default.hb_build.ToString().Trim() + ")"; - string newBuild = appcast.version.Trim() + " (" + appcast.build + ")"; + string newBuild = _appcast.version.Trim() + " (" + _appcast.build + ")"; lbl_update_text.Text = "HandBrake " + newBuild + " is now available. " + old; } private void btn_installUpdate_Click(object sender, EventArgs e) { - frmDownload download = new frmDownload(appcast.downloadFile); + frmDownload download = new frmDownload(_appcast.downloadFile); download.ShowDialog(); this.Close(); } @@ -48,7 +48,7 @@ namespace Handbrake private void btn_skip_Click(object sender, EventArgs e) { - Properties.Settings.Default.skipversion = int.Parse(appcast.build); + Properties.Settings.Default.skipversion = int.Parse(_appcast.build); Properties.Settings.Default.Save(); this.Close();