Exemplo 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();
     }
 }
Exemplo n.º 2
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();
     }
 }
Exemplo n.º 3
0
 private void ItemDetail_Load(object sender, EventArgs e)
 {
     _p = new Prument.ORM.Products();
     ((mainForm)this.MdiParent).tsslMain.Text = "Ready";
     this.Status = EditStatus.New;
 }
Exemplo n.º 4
0
 private void ItemDetail_Load(object sender, EventArgs e)
 {
     _p = new Prument.ORM.Products();
     ((mainForm)this.MdiParent).tsslMain.Text = "Ready";
     this.Status = EditStatus.New;
 }