When a change is made, mark the files dirty so they are saved.
This commit is contained in:
		
							
								
								
									
										1
									
								
								EduNetworkBuilder/TranslationWindow.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								EduNetworkBuilder/TranslationWindow.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -253,6 +253,7 @@ | |||||||
|             this.tbFormItem2.Name = "tbFormItem2"; |             this.tbFormItem2.Name = "tbFormItem2"; | ||||||
|             this.tbFormItem2.Size = new System.Drawing.Size(462, 72); |             this.tbFormItem2.Size = new System.Drawing.Size(462, 72); | ||||||
|             this.tbFormItem2.TabIndex = 6; |             this.tbFormItem2.TabIndex = 6; | ||||||
|  |             this.tbFormItem2.Leave += new System.EventHandler(this.tbFormItem2_Leave); | ||||||
|             //  |             //  | ||||||
|             // tbFormItem1 |             // tbFormItem1 | ||||||
|             //  |             //  | ||||||
|   | |||||||
| @@ -424,6 +424,21 @@ namespace EduNetworkBuilder | |||||||
|                 ChangedFormData = true; |                 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 |     #region TranslationClasses | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user