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;
this.CheckViewTabBottom.Checked = settingCommon.ViewTabBottom;
this.chkUnreadStyle.Checked = settingCommon.UseUnreadStyle;
- //書式指定文字列エラーチェック
+ // 書式指定文字列エラーチェック
var dateTimeFormat = settingCommon.DateTimeFormat;
try
{
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;
{
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;
private void CmbDateTimeFormat_Validating(object sender, CancelEventArgs e)
{
- if (!CreateDateTimeFormatSample())
+ if (!this.CreateDateTimeFormatSample())
{
MessageBox.Show(Properties.Resources.CmbDateTimeFormat_Validating);
e.Cancel = true;