Пример #1
0
        /// <summary>
        /// This is the Click event for the Meat And Fish Category. This event will set the content panel
        /// to display the MeatUserControl.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MeatAndFishPictureBox_Click(object sender, EventArgs e)
        {
            CategoryUserControl cg = new CategoryUserControl();
            MeatUserControl     me = new MeatUserControl();

            MainControlClass.ShowControl(me, contentPanel);
            cg.Dispose();
        }
Пример #2
0
        /// <summary>
        /// This is the Click event for the CanGoods Category. This event will set the content panel
        /// to display the CanUserControl.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CanGoodsPictureBox_Click(object sender, EventArgs e)
        {
            CategoryUserControl cg = new CategoryUserControl();
            CanUserControl      cn = new CanUserControl();

            MainControlClass.ShowControl(cn, contentPanel);
            cg.Dispose();
        }
Пример #3
0
        /// <summary>
        /// This is the Click event for the Produce Category. This event will set the content panel
        /// to display the ProduceUserControl
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ProducePictureBox_Click(object sender, EventArgs e)
        {
            CategoryUserControl cg = new CategoryUserControl();
            ProduceUserControl  pd = new ProduceUserControl();

            MainControlClass.ShowControl(pd, contentPanel);
            cg.Dispose();
        }
Пример #4
0
        /// <summary>
        /// This is the Click event for the Frozen Category. This event will set the content panel
        /// to display the FrozenUserControl
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrozenPictureBox_Click(object sender, EventArgs e)
        {
            CategoryUserControl cg = new CategoryUserControl();
            FrozenUserControl   fz = new FrozenUserControl();

            MainControlClass.ShowControl(fz, contentPanel);
            cg.Dispose();
        }
        /// <summary>
        /// LoginButton click event. Check if user enterd something in the username and password text boxes then
        /// loads the CategoryUserControl.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LoginButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(loginEmailTextBox.Text) && string.IsNullOrWhiteSpace(loginPasswordTextBox.Text))
            {
                MessageBox.Show("Enter You Username or password.");
            }
            else
            {
                //Loading the CategoryUserControl
                CategoryUserControl ca = new CategoryUserControl();
                MainControlClass.ShowControl(ca, contentPanel);

                //make user enter info
                userName = loginEmailTextBox.Text;
            }
        }
Пример #6
0
        /// <summary>
        /// ReturnButton click event that sets the content panel to show the CategoryUserControl
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReturnButton_Click(object sender, EventArgs e)
        {
            CategoryUserControl cg = new CategoryUserControl();

            MainControlClass.ShowControl(cg, contentPanel);
        }
Пример #7
0
        /// <summary>
        /// CheckOutButton click event. Will Set the content panel to show the CheckOutUserControl.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CheckOutButton_Click(object sender, EventArgs e)
        {
            CheckOutUserControl co = new CheckOutUserControl();

            MainControlClass.ShowControl(co, contentPanel);
        }