예제 #1
0
        private static void ButtonToCart_Click(object sender, EventArgs e)
        {
            Control        button   = (Control)sender;
            BoveloBaseForm form     = (BoveloBaseForm)button.Parent;
            Cart           cartPage = new Cart(form.user, form.client);

            cartPage.Show();
            form.Close();
        }
예제 #2
0
        private static void ButtonClient_Click(object sender, EventArgs e)
        {
            Control              button = (Control)sender;
            BoveloBaseForm       form   = (BoveloBaseForm)button.Parent;
            ClientIdentification clientIdentificationPage = new ClientIdentification(form.user, form.client);

            clientIdentificationPage.Show();
            form.Close();
        }
예제 #3
0
        private static void ButtonLogoutUser_Click(object sender, EventArgs e)
        {
            Control        button    = (Control)sender;
            BoveloBaseForm form      = (BoveloBaseForm)button.Parent;
            UserLoginPage  LoginPage = new UserLoginPage();

            LoginPage.Show();
            form.Close();
        }
예제 #4
0
        private static void ButtonReturnToStock_Click(object sender, EventArgs e)
        {
            Control        button = (Control)sender;
            BoveloBaseForm form   = (BoveloBaseForm)button.Parent;
            Stock          stock  = new Stock(form.user);

            stock.Show();
            form.Close();
        }
예제 #5
0
        private static void ButtonReturnToMenus_Click(object sender, EventArgs e)
        {
            Control            button             = (Control)sender;
            BoveloBaseForm     form               = (BoveloBaseForm)button.Parent;
            MenusSelectionPage menusSelectionPage = new MenusSelectionPage(form.user);

            menusSelectionPage.Show();
            form.Close();
        }
예제 #6
0
 private static void ButtonQuit_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Exit application?",
                         "Bovélo",
                         MessageBoxButtons.YesNo,
                         MessageBoxIcon.Information) == DialogResult.Yes)
     {
         Control        button = (Control)sender;
         BoveloBaseForm form   = (BoveloBaseForm)button.Parent;
         form.Close();
         Environment.Exit(0);
     }
 }