}/*public MainPoSForm(int a_enteredCode) : this()*/ /// <summary> /// The Load event for the main register menu. This event is raised whenever the form is constructed /// This method sets up the menu for use: Generates the default check and its representative button, /// establishes connection with the database and sets the Listbox's datasource to the BindingList /// </summary> /// //<remarks> /// NAME: MainPoSForm_Load /// AUTHOR: Ryan Osgood /// DATE: 8/13/2019 /// </remarks> /// <param name="sender"> The object that the event is attached to </param> /// <param name="e"> The EventArgs of the raised event. </param> private void MainPoSForm_Load(object sender, EventArgs e) { Button defaultTabButton = new Button { Size = new Size(m_buttonSizeX, m_buttonSizeY), Location = new Point(0, 10) }; defaultTabButton.Click += BtnTabInfo_Click; defaultTabButton.Tag = m_buttonID; m_buttonID++; flpTabs.Controls.Add(defaultTabButton); m_customerTabsButtons.Add(defaultTabButton); CustomerCheck defaultCustomerCheck = new CustomerCheck(); m_customerChecks.Add(defaultCustomerCheck); m_customerCheckView = new CustomerCheckView(defaultCustomerCheck); InitializeDatabaseConnection(); RecognizeEmployee(); RecognizeEmployeeTitle(); lbCustomerCheck.DataSource = m_customerCheckView.GetItemsForDisplay(); }/*private void MainPoSForm_Load(object sender, EventArgs e)*/
}/*private void DeleteItemWithinMealAtIndex(int a_mealIndex, int a_itemIndex)*/ /// <summary> /// This method is called whenever the customer's orders are drawn to the screen. Handles logic /// to give a customer's check visual clarity on which orders have been sent to the screens or not. /// </summary> /// <remarks> /// NAME: LbCustomerCheck_DrawItem /// AUTHOR: Ryan Osgood /// DATE: 8/13/2019 /// </remarks> /// <param name="sender">The object that triggered the event</param> /// <param name="e">The EventArgs object for formatting the view of the ListBox</param> private void LbCustomerCheck_DrawItem(object sender, DrawItemEventArgs e) { e.DrawBackground(); //For when the user clicks on the empty Listbox. if (e.Index < 0) { return; } string formatable = lbCustomerCheck.Items[e.Index].ToString(); CustomerCheckView viewTextFormatting = new CustomerCheckView(m_customerChecks[m_currentlySelectedTab]); if (e.Index < viewTextFormatting.GetCountInDisplayOfSentItems()) { e.Graphics.DrawString(formatable, new Font("Arial", 10, FontStyle.Italic), Brushes.Black, e.Bounds); } else { e.Graphics.DrawString(formatable, new Font("Arial", 10, FontStyle.Bold), Brushes.Black, e.Bounds); } e.DrawFocusRectangle(); }/*private void LbCustomerCheck_DrawItem(object sender, DrawItemEventArgs e)*/