Esempio n. 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            String text = listView1.SelectedItems[0].Text;

            listView1.Items.Remove(listView1.SelectedItems[0]);
            int id_costume = COSTUME.Get_Id(textBox8.Text);

            COSTUMES_CENA.Delete(id_costume);
            COSTUME.Delete(Convert.ToInt32(text));
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if ((textBox1.Text == "") || (textBox8.Text == ""))
     {
         MessageBox.Show("Одно из обязательных полей не заполнено");
     }
     else
     {
         COSTUME.Insert(Convert.ToInt32(textBox1.Text), textBox8.Text);
         int id_costume = COSTUME.Get_Id(textBox8.Text);
         COSTUMES_CENA.Insert(id_costume, Convert.ToInt32(textBox2.Text));
     }
 }