save form data if we have changed it.
This commit is contained in:
parent
ef47d491f2
commit
3d46bd0c2e
@ -25,6 +25,7 @@ namespace EduNetworkBuilder
|
||||
string FormChosenDir = "";
|
||||
List<TranslationResxFile> TranslationResxFiles = new List<TranslationResxFile>();
|
||||
string EnglishTargetFile = "edustrings.resx";
|
||||
bool ChangedFormData = false;
|
||||
|
||||
|
||||
public TranslationWindow(Network ToEdit)
|
||||
@ -128,6 +129,12 @@ namespace EduNetworkBuilder
|
||||
//Console.WriteLine("Saved");
|
||||
lblStatus.Text = NB.Translate("_Saved");
|
||||
}
|
||||
if(ChangedFormData)
|
||||
{
|
||||
foreach (TranslationResxFile one in TranslationResxFiles)
|
||||
one.Save();
|
||||
ChangedFormData = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void TranslationWindow_KeyDown(object sender, KeyEventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user