예제 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow item in this.dataGridView1.SelectedRows)
     {
         Int32           inx    = item.Index;
         server.Service1 server = new server.Service1();
         server.delete(inx, true);
         show();
     }
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            server.Service1 myitems = new server.Service1();
            myitems.additem(textBox1.Text, comboBox1.Text, textBox3.Text);

            foreach (DataGridViewRow item in this.dataGridView1.SelectedRows)
            {
                Int32           inx    = item.Index;
                server.Service1 server = new server.Service1();
                server.delete(inx, true);
                show();
            }
        }