Пример #1
0
 private void buttonOK_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked == true)
     {
         ord.Add((Goods)dataGridView1.CurrentRow.DataBoundItem, (int)numericUpDown1.Value);
     }
     else if (radioButton2.Checked == true)
     {
         Goods gds = new Goods(textBox1.Text, (float)numericUpDown2.Value);
         OrderService.CreateGoods(textBox1.Text, (float)numericUpDown2.Value);
         ord.Add(gds, (int)numericUpDown1.Value);
     }
     fm.BindingOrdDetailRefresh(false);
     this.Close();
 }