private void bcpSave_Click(object sender, EventArgs e) { if (!CheckSave()) { return; } if (txtDirectional.Text == string.Empty) { lblInfo.ForeColor = Color.Red; lblInfo.Text = "请填写方向性描述"; return; } // 构造方向性 string tmpd1 = lblFromStation.Tag.ToString() + "," + lblFromHead.Tag.ToString(); string tmpd2 = lblToStation.Tag.ToString() + "," + lblToHead.Tag.ToString(); //存入日志 LogSave.Messages("[FrmDirectionalManage]", LogIDType.UserLogID, "配置方向性,起始接收器:" + tmpd1 + ",目标接收器:" + tmpd2 + ",描述:" + txtDirectional.Text + "。"); operated = 1; int result = sbll.addDirectionalAntenna(tmpd1 + ":" + tmpd2, txtDirectional.Text); if (result == 0) { lblInfo.ForeColor = Color.Red; lblInfo.Text = "方向性已存在"; return; } else if (result == 1) { txtDirectional.Text = ""; lblInfo.ForeColor = Color.Blue; lblInfo.Text = "添加成功"; if (!New_DBAcess.IsDouble) { getInfo(int.Parse(txtPage.CaptionTitle), ""); } else { timer1.Start(); } return; } else { } }