示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int way = 0;

            if (radioButton2.Checked)
            {
                way = 1;
            }

            List <string> aid = new List <string>();


            foreach (DataRow dr in selectedRegion.Rows)
            {
                aid.Add(dr["ID"].ToString());
            }
            if (aid.Count > 0)
            {
                string Msg = bll.SetLiuXiang(pid, aid.ToArray(), 0, way, Login.authKey);
                MessageBox.Show(Msg);
            }
            else
            {
                bool Result = bll.SetCancelLiuXiang(pid, Login.authKey);

                MessageBox.Show(Result ? "取消成功" : "取消失败");
            }
        }