Exemple #1
0
 /// <summary>
 /// Trys to parse <see cref="Requirements.InterfaceUri"/> as a pre-computed <see cref="Selection.Selections"/> document.
 /// </summary>
 /// <seealso cref="SelectionsDocument"/>
 private void TryParseSelectionsDocument()
 {
     try
     { // Try to parse as selections document
         Selections = XmlStorage.LoadXml <Selections>(Requirements.InterfaceUri.LocalPath);
         Selections.Normalize();
         Requirements.InterfaceUri = Selections.InterfaceUri;
         SelectionsDocument        = true;
     }
     catch (InvalidDataException)
     { // If that fails assume it is an interface
     }
 }
Exemple #2
0
 /// <summary>
 /// Trys to parse <see cref="Requirements.InterfaceUri"/> as a pre-computed <see cref="Selection.Selections"/> document.
 /// </summary>
 /// <seealso cref="SelectionsDocument"/>
 private void TryParseSelectionsDocument()
 {
     try
     { // Try to parse as selections document
         Selections = XmlStorage.LoadXml<Selections>(Requirements.InterfaceUri.LocalPath);
         Selections.Normalize();
         Requirements.InterfaceUri = Selections.InterfaceUri;
         SelectionsDocument = true;
     }
     catch (InvalidDataException)
     { // If that fails assume it is an interface
     }
 }