示例#1
0
 //кнопка корзина.
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     Forms.BasketForm newForm = new Forms.BasketForm();
     newForm.Left = this.Left;
     newForm.Top  = this.Top;
     newForm.Show();
     this.Hide();
 }
示例#2
0
 //удаление товара отображаемого в 4й панели из корзины.
 private void Product4Delete_Click(object sender, EventArgs e)
 {
     UserData.Bascket.OrderIdCount.Remove(C[currentPage * 4 - 1].ID);
     UserData.Bascket.CountProducts--;
     Forms.BasketForm newForm = new BasketForm();
     newForm.Left = this.Left;
     newForm.Top  = this.Top;
     newForm.Show();
     this.Hide();
 }