Example #1
0
 private void ValidateXMLVersion(string filePath)
 {
     var versionControl = new SettingsVersionControl();
     var validator = new SettingsValidator();
     if (File.Exists(filePath))
     {
         versionControl.UpdateSettingsFile(filePath);
         bool isValid = validator.ValidateSettingsFile(filePath, true);
         if (!isValid)
         {
         }
     }
 }
Example #2
0
		protected void ValidateXMLVersion(string filePath)
		{
			var versionControl = new SettingsVersionControl();
			var Validator = new SettingsValidator();
			if (File.Exists(filePath))
			{
				versionControl.UpdateSettingsFile(filePath);
				bool isValid = Validator.ValidateSettingsFile(filePath, false);
				if (!isValid)
				{
					if (Param.Value != null && Param.Value.Count > 0)
					{
						_lastSelectedLayout = Param.Value["LayoutSelected"];
						this.Close();
					}
				}
			}
		}