From: ttp Date: Sat, 30 May 2009 08:43:32 +0000 (+0900) Subject: AppliStation-GUI,UserPrefForm.csへのコメント追加 X-Git-Tag: v1.3.0~18 X-Git-Url: http://git.sourceforge.jp/view?p=applistation%2FAppliStation.git;a=commitdiff_plain;h=0190dc4eb87a9b963c5094c974243856f8ac1480 AppliStation-GUI,UserPrefForm.csへのコメント追加 --- diff --git a/AppliStation/UserPrefForm.cs b/AppliStation/UserPrefForm.cs index 555bfa1..e5f1bd6 100644 --- a/AppliStation/UserPrefForm.cs +++ b/AppliStation/UserPrefForm.cs @@ -16,6 +16,9 @@ namespace AppliStation private bool isRepoListChanged; + /// + /// コンストラクタ + /// public UserPrefForm() { repos = new List(); @@ -38,6 +41,9 @@ namespace AppliStation #region レポジトリリスト設定関連 + /// + /// レポジトリリストの設定を読み書きする + /// public RepositoriesList RepositoriesListSetting { get { RepositoriesList repoList = new RepositoriesList(); @@ -55,10 +61,18 @@ namespace AppliStation } } + /// + /// ListBoxへ表示するレポジトリ表現文字列を返す + /// + /// 対象レポジトリ + /// ListBoxに表示すべき文字列 private string repoListCheckedListBoxRenderer(RepositoryInfo repo) { return string.Format("{0}[{1}]", repo.Name, repo.Url.Href); } - + + /// + /// ListBoxの内容を更新(再構築)する。 + /// private void updateRepos() { repoListCheckedListBox.Items.Clear(); @@ -69,7 +83,6 @@ namespace AppliStation } } - void RepoListCheckedListBoxSelectedIndexChanged(object sender, EventArgs e) { int selectedIndex = repoListCheckedListBox.SelectedIndex; @@ -162,10 +175,17 @@ namespace AppliStation } } + /// + /// レポジトリリストが編集されたか否かのフラグ + /// + /// ソフトリストの再読み込みが必要か否かの判断に使われる public bool IsRepositoryListSettingChanged { get { return isRepoListChanged; } } + /// + /// レポジトリリストの設定を反映する + /// private void commitRepositoryListSetting() { if (isRepoListChanged) { @@ -177,6 +197,9 @@ namespace AppliStation #region プロキシサーバ設定関連 + /// + /// プロキシアドレスを設定あるいは取得する + /// public string ProxyAddress { get { if (proxySameAsIERadioButton.Checked) { @@ -201,6 +224,9 @@ namespace AppliStation } } + /// + /// ProxyURLのテキストボックス領域の有効状態を切り替える + /// private void updateProxyURLEnability() { bool isSpecifiedProxy = specifyProxyRadioButton.Checked; @@ -214,15 +240,21 @@ namespace AppliStation updateProxyURLEnability(); } + /// + /// プロキシ設定を、指定された設定オブジェクトに設定する。 + /// + /// 設定オブジェクト private void commitProxySetting(NaGet.NaGetLibPref pref) { pref.ProxyAddress = this.ProxyAddress; - - NaGet.Utils.PutSerializeObject(NaGet.Env.PrefPath, pref); } #endregion + /// + /// 指定された設定オブジェクトをファイルとして保存する + /// + /// 設定ファイル private void commitNaGetLibPref(NaGet.NaGetLibPref pref) { // ファイルに書き込む