When a change is made, mark the files dirty so they are saved.

This commit is contained in:
Tim Young 2017-11-01 09:56:27 -05:00
parent b5949b8090
commit 93b44141ea
2 changed files with 16 additions and 0 deletions

View File

@ -253,6 +253,7 @@
this.tbFormItem2.Name = "tbFormItem2";
this.tbFormItem2.Size = new System.Drawing.Size(462, 72);
this.tbFormItem2.TabIndex = 6;
this.tbFormItem2.Leave += new System.EventHandler(this.tbFormItem2_Leave);
//
// tbFormItem1
//

View File

@ -424,6 +424,21 @@ namespace EduNetworkBuilder
ChangedFormData = true;
}
}
private void tbFormItem2_Leave(object sender, EventArgs e)
{
//If the text no longer matches, we want to update it.
TranslationItem TI = GetEditedTranslationItem();
if (TI != null)
{
//only make a note if it has changed
if (TI.Value != tbFormItem2.Text)
{
TI.Value = tbFormItem2.Text;
ChangedFormData = true;
}
}
}
}
#region TranslationClasses