private void mnuItemHotelsDisplay_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = "hotels.xml";
            frm.ShowDialog();
        }
        private void mnuItemRoomInventoryDisplay_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = "roominventory.xml";
            frm.ShowDialog();
        }
        private void btnDisplayHotels_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = hotels_filePath; // "hotels.xml";
            frm.ShowDialog();
        }
        private void displayRoominventoryxmlToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = "roominventory.xml";
            frm.ShowDialog();
        }
        private void btnDisplayInventory_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = inventories_filePath; //"roominventory.xml";
            frm.ShowDialog();
        }
        private void displayHotelsxmlToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = "hotels.xml";
            frm.ShowDialog();
        }
        private void loadHotelFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            hotelListFactory.CreateHotelsList();
            BrowserForm frm = new BrowserForm();

            frm.URL = "hotelslisting.xml";
            frm.ShowDialog();
        }
        private void createAndDisplayHotelsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BrowserForm frm = new BrowserForm();

            frm.URL = "HotelList.xml";
            frm.ShowDialog();
            lblStatus.Text = "Loaded and Displayed Hotels";
        }
        private void displayHotelRatingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BrowserForm          frm          = new BrowserForm();
            XslCompiledTransform xsltransform = new XslCompiledTransform();

            xsltransform.Load(@"..\..\hotelratings.xslt");
            xsltransform.Transform(@"..\..\HotelList.xml", @"..\..\hotelratings.html");
            frm.URL = "hotelratings.html";
            frm.ShowDialog();
            lblStatus.Text = "Displayed Hotel Ratings";
        }
        private void btnLoadHotelFile_Click(object sender, EventArgs e)
        {
            hotelListFactory.CreateHotelsList();
            BrowserForm frm = new BrowserForm();

            frm.URL = "hotels.xml";
            frm.ShowDialog();
            BrowserForm frm2 = new BrowserForm();

            frm2.URL = "roomInventory.xml";
            frm2.ShowDialog();
        }
Exemplo n.º 11
0
        private void loadHotelAndInventoryFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            hotelListFactory.CreateHotelsList();
            BrowserForm frm = new BrowserForm();

            frm.URL = "hotels.xml";
            frm.ShowDialog();
            RoomIventoryFactory.CreateRoomInventory();
            BrowserForm frm2 = new BrowserForm();

            frm2.URL = "roomInventory.xml";
            frm2.ShowDialog();
        }
        private void btnCreateNewHotel_Click(object sender, EventArgs e)
        {
            try {
                XslCompiledTransform xslt = new XslCompiledTransform();
                xslt.Load(xslt_path);
                xslt.Transform(new_hotels_filePath, xsl_html_file_path);

                BrowserForm frm = new BrowserForm();
                frm.URL = xsl_html_file_path;
                frm.ShowDialog();

                lblStatus.Text = "Operation - Successful!";
            }catch (Exception err)
            {
                lblStatus.Text = "Operation - " + err.Message;
                System.Console.Out.WriteLine(err.Message);
            }
        }