Exemple #1
0
 private void btnModelUp_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvTestModel.CurrentRow.Index > 0)
         {
             string str1 = "PID=" + this.myModelPID + " and ItemName='" + dgvTestModel.CurrentRow.Cells["ItemName"].Value.ToString() + "'";
             string str2 = "PID=" + this.myModelPID + " and ItemName='" + dgvTestModel.Rows[dgvTestModel.CurrentRow.Index - 1].Cells["ItemName"].Value.ToString() + "'";
             PNInfo.ChangeSEQ(1, dgvTestModel, PNInfo.TopoToatlDS.Tables["TopoTestModel"], str1, str2);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }