OSDN Git Service

AppendSettingDialog.RecomendStatusTextをTweenMainのprivateフィールドとして移動
authorKimura Youichi <kim.upsilon@bucyou.net>
Fri, 1 Aug 2014 16:55:04 +0000 (01:55 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Fri, 1 Aug 2014 17:20:33 +0000 (02:20 +0900)
OpenTween/AppendSettingDialog.cs
OpenTween/Tween.cs

index 6427442..0b37067 100644 (file)
@@ -277,8 +277,6 @@ namespace OpenTween
             }
         }
 
-        public string RecommendStatusText { get; set; }
-
         private bool StartAuth()
         {
             //現在の設定内容で通信
index 5db5002..d88c1bf 100644 (file)
@@ -218,6 +218,8 @@ namespace OpenTween
 
         private ImageListViewItem displayItem;
 
+        private string recommendedStatusFooter;
+
         /// <summary>
         /// デザイン時の DPI (96dpi) と実際の表示時の DPI との比を表します
         /// </summary>
@@ -784,7 +786,7 @@ namespace OpenTween
             this.ToolStripFocusLockMenuItem.Checked = _cfgCommon.FocusLockToStatusText;
 
             //Regex statregex = new Regex("^0*");
-            SettingDialog.RecommendStatusText = " [TWNv" + Regex.Replace(MyCommon.FileVersion.Replace(".", ""), "^0*", "") + "]";
+            this.recommendedStatusFooter = " [TWNv" + Regex.Replace(MyCommon.FileVersion.Replace(".", ""), "^0*", "") + "]";
 
             //ハッシュタグ関連
             HashSupl = new AtIdSupplement(_cfgCommon.HashTags, "#");
@@ -2115,7 +2117,7 @@ namespace OpenTween
                 {
                     if (this._cfgLocal.UseRecommendStatus)
                         // 推奨ステータスを使用する
-                        footer += SettingDialog.RecommendStatusText;
+                        footer += this.recommendedStatusFooter;
                     else
                         // テキストボックスに入力されている文字列を使用する
                         footer += " " + this._cfgLocal.StatusText.Trim();
@@ -4862,7 +4864,7 @@ namespace OpenTween
                 (!isAuto && isAddFooter))
             {
                 if (this._cfgLocal.UseRecommendStatus)
-                    pLen -= SettingDialog.RecommendStatusText.Length;
+                    pLen -= this.recommendedStatusFooter.Length;
                 else if (this._cfgLocal.StatusText.Length > 0)
                     pLen -= this._cfgLocal.StatusText.Length + 1;
             }