using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Aqua877.WinApp.IronLivetube.CommandOptionWindows
{
	public partial class ReplaceCommandOptionWindow : Form
	{
		public ReplaceCommandOptionWindow()
		{
			this.InitializeComponent();

			this.IsDisableCommandForShortlyStringCheckBox.Checked = GlobalValues.Setting.IsDisableCommandForShortlyString;
			this.IsNotifyWhenCommandExecutedCheckBox.Checked = GlobalValues.Setting.IsNotifyWhenCommandExecuted;
			this.IsReflectCommandForWordAddedByUserCheckBox.Checked = GlobalValues.Setting.IsReflectCommandForWordAddedByUser;
		}

		private void OKButton_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		private void IsDisableCommandForShortlyStringCheckBox_CheckedChanged(object sender, EventArgs e)
		{
			GlobalValues.Setting.IsDisableCommandForShortlyString = this.IsDisableCommandForShortlyStringCheckBox.Checked;
		}

		private void IsNotifyWhenCommandExecutedCheckBox_CheckedChanged(object sender, EventArgs e)
		{
			GlobalValues.Setting.IsNotifyWhenCommandExecuted = this.IsNotifyWhenCommandExecutedCheckBox.Checked;
		}

		private void IsReflectCommandForWordAddedByUserCheckBox_CheckedChanged(object sender, EventArgs e)
		{
			GlobalValues.Setting.IsReflectCommandForWordAddedByUser = this.IsReflectCommandForWordAddedByUserCheckBox.Checked;
		}
	}
}
