Example #1
0
        private void basketBox_Click(object sender, EventArgs e)
        {
            this.Hide();
            BasketForm form = new BasketForm();

            form.Location      = this.Location;
            form.StartPosition = FormStartPosition.Manual;
            form.FormClosing  += delegate { this.Show(); };
            form.Show();
        }
        private void showBasket_button(object sender, EventArgs e)
        {
            BasketForm basketForm = new BasketForm();

            basketForm.Location      = this.Location;
            basketForm.StartPosition = FormStartPosition.Manual;
            basketForm.FormClosing  += delegate { this.Close(); };
            basketForm.Show();
            this.Hide();
        }