OSDN Git Service

usingの順序を揃える (SA1208, SA1210)
[opentween/open-tween.git] / OpenTween / Setting / Panel / TweetPrvPanel.cs
index a599ea5..ac5de6d 100644 (file)
@@ -29,8 +29,8 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Drawing;
 using System.Data;
+using System.Drawing;
 using System.Linq;
 using System.Text;
 using System.Windows.Forms;
@@ -58,7 +58,7 @@ namespace OpenTween.Setting.Panel
             this.CheckViewTabBottom.Checked = settingCommon.ViewTabBottom;
             this.chkUnreadStyle.Checked = settingCommon.UseUnreadStyle;
 
-            //書式指定文字列エラーチェック
+            // 書式指定文字列エラーチェック
             var dateTimeFormat = settingCommon.DateTimeFormat;
             try
             {
@@ -90,7 +90,7 @@ namespace OpenTween.Setting.Panel
                 2 => MyCommon.IconSizes.Icon24,
                 3 => MyCommon.IconSizes.Icon48,
                 4 => MyCommon.IconSizes.Icon48_2,
-                _ => throw new IndexOutOfRangeException($"Invalid {nameof(IconSize)} index: {this.IconSize.SelectedIndex}"),
+                _ => throw new IndexOutOfRangeException($"Invalid {nameof(this.IconSize)} index: {this.IconSize.SelectedIndex}"),
             };
             settingCommon.OneWayLove = this.OneWayLv.Checked;
             settingCommon.SortOrderLock = this.CheckSortOrderLock.Checked;
@@ -106,11 +106,11 @@ namespace OpenTween.Setting.Panel
         {
             try
             {
-                LabelDateTimeFormatApplied.Text = DateTimeUtc.Now.ToLocalTimeString(CmbDateTimeFormat.Text);
+                this.LabelDateTimeFormatApplied.Text = DateTimeUtc.Now.ToLocalTimeString(this.CmbDateTimeFormat.Text);
             }
             catch (FormatException)
             {
-                LabelDateTimeFormatApplied.Text = Properties.Resources.CreateDateTimeFormatSampleText1;
+                this.LabelDateTimeFormatApplied.Text = Properties.Resources.CreateDateTimeFormatSampleText1;
                 return false;
             }
             return true;
@@ -124,7 +124,7 @@ namespace OpenTween.Setting.Panel
 
         private void CmbDateTimeFormat_Validating(object sender, CancelEventArgs e)
         {
-            if (!CreateDateTimeFormatSample())
+            if (!this.CreateDateTimeFormatSample())
             {
                 MessageBox.Show(Properties.Resources.CmbDateTimeFormat_Validating);
                 e.Cancel = true;