private void TempControl_Load(object sender, EventArgs e)
{
textBox1.DataBindings.Add(new Binding("Text", this, "MyText", false, DataSourceUpdateMode.OnValidation));
if (!DesignMode)
{
DataBindings.Add(new Binding("MyText", settings, "MyText"));
DataBindings.Add(new Binding("TestEnum", settings, "TestEnum"));
}
}