コード例 #1
0
        // This is the constructor for this class
        public frmReserve(cntrlFacilities facilitiesControl, User user, Facility facilty)
        {
            InitializeComponent();
            _bookingManager    = new BookingManager();
            _user              = user;
            _facilitiesControl = facilitiesControl;
            _facility          = facilty;

            txtPricePerHour.Text = facilty.PricePerHour.ToString();
            this.Title           = "Reserve " + facilty.FacilityName;
        }
コード例 #2
0
        // This event handler is fired when the facilities button is clicked. It loads the facilities user control.
        private void BtnFacilities_Click(object sender, RoutedEventArgs e)
        {
            cntrlFacilities facilities = new cntrlFacilities(_user);

            ctrlMainContent.Content = facilities;
        }