Ejemplo n.º 1
0
 private void btnDel_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("����ȷ��Ҫɾ����Щ��¼��һ��ɾ�����ݽ����ɻָ���", "��ʾ", MessageBoxButtons.YesNo) ==DialogResult.Yes)
     {
         int i;
         Prument.ORM.Products _p = new Prument.ORM.Products();
         for (i = 0; i < dataGridView1.SelectedRows.Count; i++)
         {
             _p.ID = Int32.Parse(dataGridView1.SelectedRows[i].Cells["pID"].Value.ToString());
             _p.DataBind(Prument.ORM.BindOperator.Delete);
         }
         DataGridRefresh();
     }
 }
Ejemplo n.º 2
0
 private void ItemDetail_Load(object sender, EventArgs e)
 {
     _p = new Prument.ORM.Products();
     ((mainForm)this.MdiParent).tsslMain.Text = "Ready";
     this.Status = EditStatus.New;
 }