Ejemplo n.º 1
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            BasketForm dlg = new BasketForm();

            dlg.Owner = this;
            dlg.ShowDialog();
            BasketShortInfo bsi = BookServiceClient.instance.Service.getUserBasketShort(BookServiceClient.instance.user);

            toolStripButton3.Text = "Корзина (" + bsi.ToString() + ")...";
            updateBooksList();
        }
Ejemplo n.º 2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         Book         b   = (Book)dataGridView1.SelectedRows[0].Tag;
         GetCountForm dlg = new GetCountForm(b.count);
         dlg.Owner = this;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             BasketShortInfo bsi = BookServiceClient.instance.Service.addBookToBasket(BookServiceClient.instance.user, b, dlg.bookCount);
             toolStripButton3.Text = "Корзина (" + bsi.ToString() + ")...";
         }
     }
 }