public DFCls_LocationForm(byte[] pXML)
 {
     String mXML = Encoding.UTF8.GetString(pXML);
     oXMLReader = new BRCls_XMLReader();
     oLocation = new BRCls_Location();
     oLocation.LoadLocationFromXML(mXML);
 }
 public DFCls_BookForm(byte[] pXML)
 {
     String mXML = Encoding.UTF8.GetString(pXML);
     oXMLReader = new BRCls_XMLReader();
     oBook = new BRCls_Book();
     oBook.LoadBookFromXML(mXML);
 }
 public DFCls_DefaultForm()
 {
     oXMLReader = new BRCls_XMLReader();
     oListBooks = new BRCls_Books();
     oListLocations = new BRCls_Locations();
     oListBooks.GetBooks();
     oListLocations.GetLocations();
 }
Example #4
0
 private void FillBookWithXML(String pXML)
 {
     BRCls_XMLReader oXMLReader = new BRCls_XMLReader(pXML);
     oXMLReader.LookForParents("book");
     this.BookID = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookid"));
     this.BookName = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookname"));
     this.BookAuthor = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookauthor"));
     this.BookISBN = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookisbn"));
     this.BookDescription = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookdescription"));
 }
 public DFCls_DefaultForm(String pXML)
 {
     oXMLReader = new BRCls_XMLReader();
     oListBooks = new BRCls_Books();
     oListLocations = new BRCls_Locations();
 }
 public DFCls_BookForm(String pStrID)
 {
     oXMLReader = new BRCls_XMLReader();
     oBook = new BRCls_Book(pStrID);
 }
 public DFCls_BookForm()
 {
     oXMLReader = new BRCls_XMLReader();
     oBook = new BRCls_Book();
 }
 private void FillLocationWithXML(String pXML)
 {
     BRCls_XMLReader oXMLReader = new BRCls_XMLReader(pXML);
     oXMLReader.LookForParents("location");
     this.LocationID = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationid"));
     this.LocationName = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationname"));
     this.LocationDescription = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationdescription"));
     this.LocationAddress = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationaddress"));
     this.LocationLatitude = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationlatitude"));
     this.LocationLongitude = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationlongitude"));
 }
 public DFCls_LocationForm(String pStrID)
 {
     oXMLReader = new BRCls_XMLReader();
     oLocation = new BRCls_Location(pStrID);
 }
 public DFCls_LocationForm()
 {
     oXMLReader = new BRCls_XMLReader();
     oLocation = new BRCls_Location();
 }