Ejemplo n.º 1
0
 //xiug
 private void button2_Click(object sender, EventArgs e)
 {
     if (button2.Text == "修改")
     {
         comboBox1.Enabled = true;
         button2.Text      = "保存";
         button1.Enabled   = button5.Enabled = button3.Enabled = button4.Enabled = false;
     }
     else
     {
         if (myguid != Guid.Empty)
         {
             m_dst.UpdateSeqbund(comboBox1.SelectedValue.ToString(), myguid);
             MessageBox.Show("修改成功");
             m_dst.GetSeqbund();
         }
         else
         {
             MessageBox.Show("请选择要修改的那一行");
         }
         comboBox1.Enabled = false;
         button2.Text      = "修改";
         button1.Enabled   = button5.Enabled = button3.Enabled = button4.Enabled = true;
     }
 }