/// <summary> /// The button click event for the 24 room selection buttons /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void dynamicBtn_Click(Object sender, EventArgs e) { //Gets the buttons tag and calls the MenuSelection(roomID) Button btn = sender as Button; String text = btn.Text; String[] arr = text.Split('\n'); int selectedRoom = Convert.ToInt32(arr[0]); MenuSelection ms = new MenuSelection(selectedRoom, arr[1], LOGGED_IN_ID); ms.RefreshDelegateMenuSelection = new RefreshDelegateRoomSelection(this.LoadDefaults); ms.Show(); }
/// <summary> /// Selects room '0' which represents payment by cash /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_cash_Click(object sender, EventArgs e) { MenuSelection ms = new MenuSelection(0, "", LOGGED_IN_ID); ms.RefreshDelegateMenuSelection = new RefreshDelegateRoomSelection(this.LoadDefaults); ms.Show(); }