public MainWindow() { InitializeComponent(); TextBox2.TextChanged += TextBoxTest_TextChanged; TextBox2.SaveChange(); TextBox2.Load(); ButtonSetValue.Click += ButtonSetValue_Click; }