Esempio n. 1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure?", "Delete", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
     {
         logdata.RemoveFromLog(lbOrderID.Text);
         dto.Rows.Remove(dto.Select("OrderID = '" + lbOrderID.Text + "'")[0]);
         lbOrderID.SelectedIndex = 0;
     }
 }