예제 #1
0
        private void btn_dispatchenum_Click(object sender, EventArgs e)
        {
            decimal num = 0;

            try
            {
                num = Convert.ToDecimal(txt_dispatchenum_pl.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("输入数量格式有误!");
            }
            DialogResult re = MessageBox.Show("确定修改缓存每次空余量为:" + txt_dispatchenum_pl.Text + "  ?", "数据修改", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);

            if (re == DialogResult.OK)
            {
                UnionCacheServer.up_dispatchenum(num);
                dataGridView1.DataSource = UnionCacheServer.GetAllData();
            }
        }